Commit Graph

82 Commits

Author SHA1 Message Date
Peter Barker 87d694414b AP_Beacon: use enum class for type 2024-06-24 18:24:11 +10:00
Andrew Tridgell bac6d6f644 AP_Beacon: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Peter Barker 2624e38a62 AP_Beacon: rename GPS_ to GPS1_ 2024-03-19 19:50:12 +11:00
Peter Barker 6e27488bfd AP_Beacon: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Peter Barker c6b93baf44 AP_Beacon: fix example when Beacon not available
simply print the fact that the beacon librar y isn't compiled in
2023-10-17 18:21:04 +11:00
Mykhailo Kuznietsov d901758005 AP_Beacon: Fix some typos
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Peter Barker 92b7cfbbb2 AP_Beacon: MarvelMind: avoid potentially reading INT32_MAX bytes of input
constrain the number of bytes read.  Simplify the way bytes are read.

the return value from available() is unsigned...
2023-07-18 11:18:47 +10:00
Peter Barker 694ad90ee7 AP_Beacon: add and use AP_BEACON_ENABLED 2022-11-16 08:16:31 +11:00
Iampete1 cacbd2579d AP_Beacon: params always use set method 2022-08-03 13:43:48 +01:00
Peter Barker 39b7f63140 AP_Beacon: stop passing serialmanager into beacon constructor 2022-06-11 16:02:37 +10:00
Peter Barker 24f7369760 AP_Beacon: tidy includes 2022-05-03 09:14:58 +10:00
Peter Barker bbcf0a0968 AP_Beacon: move logging of Beacon into Beacon library 2022-04-13 16:22:19 +10:00
murata 12b3b22dbc AP_Beacon: Change from division to multiplication 2022-03-16 18:41:52 +11:00
Peter Barker 6a46ccf019 AP_Beacon: have nooploop use base-class uart instance 2021-11-02 11:19:18 +11:00
Peter Barker e158bab893 AP_Beacon: tidy constructors 2021-10-23 10:10:28 +11:00
Iampete1 280171e96b AP_Beacon: hide params with enable flag 2021-08-24 09:38:46 +10:00
Pierre Kancir 0a922426a2 AP_Beacon: fix comparison order to prevent using wrong beacon_instance first 2021-08-11 15:17:08 +10:00
bugobliterator 56b6c669d7 AP_Beacon: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
Andrew Tridgell 3f4c605361 AP_Beacon: added const 2020-11-11 16:14:22 -08:00
chobits c5e289efc3 AP_Beacon: Nooploop driver
based on rmackay9's work
2020-10-15 08:07:46 +09:00
Randy Mackay ce55af4d95 AP_Beacon: fix sitl position to be NED 2020-08-25 09:38:10 +09:00
Randy Mackay 276e56e618 AP_Beacon: update comments to clarify frame
also minor formatting fix
2020-08-25 09:38:10 +09:00
murata a8af4b2937 AP_Beacon: Change the tab code to whitespace 2020-04-27 09:32:56 +09:00
Peter Barker 93fb5354da AP_Beacon: pozyx: remove dead and pointless code 2020-04-01 15:42:47 +09:00
murata 89484a8f64 AP_Beacon: Common modbus crc method 2019-07-12 15:33:21 +10:00
Peter Barker da81c5fe39 AP_Beacon: do not include fence closing/duplicate point in polygon boundary 2019-05-29 15:34:02 +10:00
Peter Barker 1c7a8c1509 AP_Beacon: correct parameter documentation to include SITL 2019-05-28 09:16:47 +10:00
Peter Barker 8ce4f73550 AP_Beacon: add singleton 2019-05-22 07:48:02 -06:00
Pierre Kancir 20928ff8da AP_Beacon: fix header 2019-04-23 09:20:43 +10:00
Pierre Kancir d6277390f4 AP_Beacon: use get_distance_NE instead of location_diff 2019-04-08 08:00:52 -07:00
Peter Barker ae8862f266 AP_Beacon: add floating point constant designators 2019-04-05 23:04:17 -07:00
Peter Barker 6cfe7d5f34 AP_Beacon: add floating-point-constant designators 2019-04-05 23:04:17 -07:00
Dr.-Ing. Amilcar do Carmo Lucas c977a646db AP_Beacon: replace location_offset() and get_distance() function calls with Location object member function calls
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
Peter Barker 0b661e7872 AP_Beacon: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Peter Barker 1075227c90 AP_Beacon: adjust for location flags being moved out of union 2019-01-16 11:45:29 +11:00
Peter Barker 64eb8f0986 AP_Beacon: add override keyword 2018-11-08 11:30:12 +11:00
Patrick José Pereira 37fbd6aaa1 AP_Beacon: Use SITL singleton
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Karthik Desai 0a04a2a8c2 AP_Beacon_Marvelmind: Relax the precision of the position of Hedge
But we are conservative here and use 20cm instead (until MM provides us with a proper accuracy value)
2018-05-23 14:51:23 +01:00
Karthik Desai 4f26bc7cad AP_Beacon_Marvelmind: Record the timestamp once, on success. 2018-05-23 14:51:23 +01:00
Karthik Desai 372fba2152 AP_Beacon_Marvelmind: Added some debug messages 2018-05-23 14:51:23 +01:00
Karthik Desai 64fdefe7cf AP_Beacon_Marvelmind: Refactor variables 2018-05-23 14:51:23 +01:00
Karthik Desai 358b3d222b AP_Beacon_Marvelmind: Simplify the Marvelmind structure.
This removes pointless pointer inits and removes the buffer.
The new incoming data is now injected as and when they are received by the driver.
2018-05-23 14:51:23 +01:00
Karthik Desai 8957111f26 AP_Beacon_Marvelmind: Remove unused variables 2018-05-23 14:51:23 +01:00
Karthik Desai b0e4a57a93 AP_Beacon_Marvelmind: Remove unnecessary structures.
This incorporates the distance into the stationary beacon structure.
2018-05-23 14:51:23 +01:00
Karthik Desai ad05a5c694 AP_Beacon_Marvelmind: Add function to find beacon's instance for the given address.
This function returns the instance number of a particular beacon's address.
It is needed because the MM sends the distances between the hedge and beacon in a random order so they have to be sorted by address before setting it.
The address of a beacon can be between 0 and 99.
2018-05-23 14:51:23 +01:00
Karthik Desai fa575e2a9a AP_Beacon_Marvelmind: Update the link to Marvelmind's repo 2018-05-23 14:51:23 +01:00
Andrew Tridgell 9fc451a615 AP_Beacon: fixed reference to -debug build directory 2018-05-09 14:17:32 +10:00
Dr.-Ing. Amilcar do Carmo Lucas 2f59572d42 AP_Beacon: Use multiplications instead of divisions in Marvelmind 2018-03-29 11:46:20 -07:00
Dr.-Ing. Amilcar do Carmo Lucas 1a8a390d4c AP_Beacon: Fix FALLTHROUGH in Marvelmind device driver. 2018-03-19 12:48:29 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas 54b3936a46 AP_Beacon: Use marvelmind beacon raw distances on the EKF
Add support for Marvelmind RAW distance measurements this
requires Marvelmind FW >= 5.77 and "Raw distances data" enabled
in the marvelmind GUI dashboard.
This is better than the previous workaround we had.
2018-03-16 08:23:52 +09:00