mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-23 13:24:03 +08:00
[opticflow] fix distance check
This commit is contained in:
@@ -103,7 +103,7 @@ static void agl_cb(uint8_t sender_id, const float *distance);
|
||||
|
||||
static void agl_cb(uint8_t sender_id __attribute__((unused)), const float *distance)
|
||||
{
|
||||
if (distance > 0) {
|
||||
if (*distance > 0) {
|
||||
estimator_agl = *distance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user