mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Proximity: Check for valid reading before pushing to OA DB
This commit is contained in:
parent
05416daef3
commit
8e586bc67d
@ -174,7 +174,7 @@ void AP_Proximity_Backend::update_boundary_for_sector(const uint8_t sector, cons
|
||||
return;
|
||||
}
|
||||
|
||||
if (push_to_OA_DB) {
|
||||
if (push_to_OA_DB && _distance_valid[sector]) {
|
||||
database_push(_angle[sector], _distance[sector]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user