AP_VisualOdom: Change from division to multiplication

This commit is contained in:
murata 2022-03-15 01:59:26 -04:00 committed by Andrew Tridgell
parent 5d2c49e202
commit 8f91fe9c2e
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void AP_VisualOdom_Backend::handle_vision_position_delta_msg(const mavlink_messa
_last_update_ms = now_ms; _last_update_ms = now_ms;
// send to EKF // send to EKF
const float time_delta_sec = packet.time_delta_usec / 1000000.0f; const float time_delta_sec = packet.time_delta_usec * 1.0E-6;
AP::ahrs().writeBodyFrameOdom(packet.confidence, AP::ahrs().writeBodyFrameOdom(packet.confidence,
position_delta, position_delta,
angle_delta, angle_delta,