AP_RangeFinder: Bugfix for mavlink rangefinders to include out of range low/high

This commit is contained in:
Jacob Walser 2016-10-10 23:06:22 -04:00 committed by Andrew Tridgell
parent 2c62158e20
commit d3442ae16b

View File

@ -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();
}
}