Peter Barker
39b7f63140
AP_Beacon: stop passing serialmanager into beacon constructor
3 years ago
Peter Barker
24f7369760
AP_Beacon: tidy includes
3 years ago
Peter Barker
bbcf0a0968
AP_Beacon: move logging of Beacon into Beacon library
3 years ago
murata
12b3b22dbc
AP_Beacon: Change from division to multiplication
3 years ago
Peter Barker
6a46ccf019
AP_Beacon: have nooploop use base-class uart instance
3 years ago
Peter Barker
e158bab893
AP_Beacon: tidy constructors
3 years ago
Iampete1
280171e96b
AP_Beacon: hide params with enable flag
4 years ago
Pierre Kancir
0a922426a2
AP_Beacon: fix comparison order to prevent using wrong beacon_instance first
4 years ago
bugobliterator
56b6c669d7
AP_Beacon: change class name from SITL::SITL to SITL::SIM
4 years ago
Andrew Tridgell
3f4c605361
AP_Beacon: added const
4 years ago
chobits
c5e289efc3
AP_Beacon: Nooploop driver
...
based on rmackay9's work
4 years ago
Randy Mackay
ce55af4d95
AP_Beacon: fix sitl position to be NED
5 years ago
Randy Mackay
276e56e618
AP_Beacon: update comments to clarify frame
...
also minor formatting fix
5 years ago
murata
a8af4b2937
AP_Beacon: Change the tab code to whitespace
5 years ago
Peter Barker
93fb5354da
AP_Beacon: pozyx: remove dead and pointless code
5 years ago
murata
89484a8f64
AP_Beacon: Common modbus crc method
6 years ago
Peter Barker
da81c5fe39
AP_Beacon: do not include fence closing/duplicate point in polygon boundary
6 years ago
Peter Barker
1c7a8c1509
AP_Beacon: correct parameter documentation to include SITL
6 years ago
Peter Barker
8ce4f73550
AP_Beacon: add singleton
6 years ago
Pierre Kancir
20928ff8da
AP_Beacon: fix header
6 years ago
Pierre Kancir
d6277390f4
AP_Beacon: use get_distance_NE instead of location_diff
6 years ago
Peter Barker
ae8862f266
AP_Beacon: add floating point constant designators
6 years ago
Peter Barker
6cfe7d5f34
AP_Beacon: add floating-point-constant designators
6 years ago
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
6 years ago
Peter Barker
0b661e7872
AP_Beacon: adjust for Location_Class and Location unification
6 years ago
Peter Barker
1075227c90
AP_Beacon: adjust for location flags being moved out of union
6 years ago
Peter Barker
64eb8f0986
AP_Beacon: add override keyword
6 years ago
Patrick José Pereira
37fbd6aaa1
AP_Beacon: Use SITL singleton
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
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)
7 years ago
Karthik Desai
4f26bc7cad
AP_Beacon_Marvelmind: Record the timestamp once, on success.
7 years ago
Karthik Desai
372fba2152
AP_Beacon_Marvelmind: Added some debug messages
7 years ago
Karthik Desai
64fdefe7cf
AP_Beacon_Marvelmind: Refactor variables
7 years ago
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.
7 years ago
Karthik Desai
8957111f26
AP_Beacon_Marvelmind: Remove unused variables
7 years ago
Karthik Desai
b0e4a57a93
AP_Beacon_Marvelmind: Remove unnecessary structures.
...
This incorporates the distance into the stationary beacon structure.
7 years ago
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.
7 years ago
Karthik Desai
fa575e2a9a
AP_Beacon_Marvelmind: Update the link to Marvelmind's repo
7 years ago
Andrew Tridgell
9fc451a615
AP_Beacon: fixed reference to -debug build directory
7 years ago
Dr.-Ing. Amilcar do Carmo Lucas
2f59572d42
AP_Beacon: Use multiplications instead of divisions in Marvelmind
7 years ago
Dr.-Ing. Amilcar do Carmo Lucas
1a8a390d4c
AP_Beacon: Fix FALLTHROUGH in Marvelmind device driver.
7 years ago
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.
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
29078824fc
AP_Beacon: Replace max_buffered_positions variable with a #define
7 years ago
Andrew Tridgell
2941afa62b
AP_Beacon: fixed example build on ChibiOS
7 years ago
Andrew Tridgell
ca91edbbeb
AP_Beacon: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Paulo Neves
4108f22304
AP_Beacon: Corrected possible use of nullptr memory.
...
The check for UART port pointer is not sufficient
to know if the update() was possible or not. When
MarvelmindHedge construction failed, the hedge pointer
might be a nullptr and there are no checks to avoid
nullptr dereference.
The MarvelmindHedge structure had complex initialization
but was done in a C style, with intermixed initialization functions.
malloc() was changed to cleaner new operator. Given that the
file already contained new operator calls it didn't make
sense to have a mix. The files are cpp so C++ operators
are used.
7 years ago
Lucas De Marchi
72fd2d6f05
global: use static method to construct AP_SerialManager
7 years ago
Randy Mackay
a303c40f1f
AP_Beacon: initialise counter in get_next_boundary_point
...
This is not a bug but at least one compiler has complained about this
8 years ago
Randy Mackay
a199604348
AP_Beacon: fix get_boundary_points num_points
...
Thanks @OXINARF for finding this!
8 years ago
Pierre Kancir
e7a5dd6a69
AP_Marvelmind: fix warning in example
8 years ago
Randy Mackay
3bcc410048
AP_Beacon: fix pozyx west-east processing
8 years ago