AP_VisualOdom: correct unused variable in visualodom

when both logging and gcs are compiled out
This commit is contained in:
Peter Barker 2024-03-17 15:08:07 +11:00 committed by Peter Barker
parent ef044e39e9
commit f55c35487b
1 changed files with 2 additions and 0 deletions

View File

@ -55,7 +55,9 @@ void AP_VisualOdom_Backend::handle_vision_position_delta_msg(const mavlink_messa
_last_update_ms = now_ms;
// send to EKF
#if AP_AHRS_ENABLED || HAL_LOGGING_ENABLED
const float time_delta_sec = packet.time_delta_usec * 1.0E-6;
#endif
#if AP_AHRS_ENABLED
AP::ahrs().writeBodyFrameOdom(packet.confidence,
position_delta,