Adam Borowski
3863535bdb
AP_Proximity: LD19/LD06 data length sanity check fix
...
Signed-off-by: Adam Borowski <mr.adam.borowski@gmail.com>
2025-02-26 20:26:42 +11:00
Peter Barker
3e2428334b
AP_Proximity: correct length sanity check
...
the length field is actually the count of 3-byte data elements
2025-01-09 15:39:34 +11:00
Marco Walther
adf05ea0e6
AP_Proximity: LD06: correct data collection
...
incorrect distances+angles being returned
2025-01-09 15:39:34 +11:00
Peter Barker
cb6907992b
AP_Proximity: prevent buffer overflow in LD06 driver
...
We're using a value off the wire before it has been validated. That value is used to limit indexing into a buffer, and that buffer isn't big enough to handle all possible "bad" values that index could take on. Note that "read" here returns int16_t....
2024-12-19 22:58:29 +11:00
rishabsingh3003
368f744435
AP_Proximity: Minor fixes to LD06 driver
2023-10-05 08:23:00 +11:00
Adithya Patil
98d8c94fee
AP_Proximity: add driver for LD06
2023-10-05 08:23:00 +11:00