Skip to content

Commit

Permalink
[ulanding_radar] Workaround for lost messages by lowering sampling rate
Browse files Browse the repository at this point in the history
The current implementation of the Aerotenna uLanding radar driver assumes that
the UART frames are received in full. If the driver polls with 10ms this is not
always the case and the driver will fail to parse the frame leading to
significant packet loss. This workaround polls at 12ms which ensures that at
least one entire frame is received.
  • Loading branch information
niklaut committed Feb 13, 2025
1 parent 686302b commit e434534
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

using namespace time_literals;

#define ULANDING_MEASURE_INTERVAL 10_ms
#define ULANDING_MEASURE_INTERVAL 12_ms
#define ULANDING_MAX_DISTANCE 50.0f
#define ULANDING_MIN_DISTANCE 0.315f
#define ULANDING_VERSION 1
Expand Down

0 comments on commit e434534

Please sign in to comment.