Browse Source

AP_DAL: fixed distance in rangefinder data

thanks to Paul for noticing
c415-sdk
Andrew Tridgell 4 years ago committed by Peter Barker
parent
commit
c1dded0483
  1. 1
      libraries/AP_DAL/AP_DAL_RangeFinder.cpp

1
libraries/AP_DAL/AP_DAL_RangeFinder.cpp

@ -85,6 +85,7 @@ void AP_DAL_RangeFinder_Backend::start_frame(AP_RangeFinder_Backend *backend) { @@ -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);
}

Loading…
Cancel
Save