AP_DAL: fixed distance in rangefinder data

thanks to Paul for noticing
This commit is contained in:
Andrew Tridgell 2020-11-13 10:45:28 +11:00 committed by Peter Barker
parent 8c59575646
commit c1dded0483

View File

@ -85,6 +85,7 @@ void AP_DAL_RangeFinder_Backend::start_frame(AP_RangeFinder_Backend *backend) {
_RRNI.orientation = backend->orientation();
_RRNI.status = (uint8_t)backend->status();
_RRNI.pos_offset = backend->get_pos_offset();
_RRNI.distance_cm = backend->distance_cm();
WRITE_REPLAY_BLOCK_IFCHANGED(RRNI, _RRNI, old);
}