AP_RangeFinder: Bugfix for mavlink rangefinders to include out of range low/high
This commit is contained in:
parent
2c62158e20
commit
d3442ae16b
@ -69,7 +69,7 @@ void AP_RangeFinder_MAVLink::update(void)
|
||||
set_status(RangeFinder::RangeFinder_NoData);
|
||||
state.distance_cm = 0;
|
||||
} else {
|
||||
set_status(RangeFinder::RangeFinder_Good);
|
||||
state.distance_cm = distance_cm;
|
||||
update_status();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user