mirror of https://github.com/ArduPilot/ardupilot
AP_VisualOdom: Change from division to multiplication
This commit is contained in:
parent
5d2c49e202
commit
8f91fe9c2e
|
@ -56,7 +56,7 @@ void AP_VisualOdom_Backend::handle_vision_position_delta_msg(const mavlink_messa
|
|||
_last_update_ms = now_ms;
|
||||
|
||||
// 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,
|
||||
position_delta,
|
||||
angle_delta,
|
||||
|
|
Loading…
Reference in New Issue