diff --git a/ArduPlane/Log.cpp b/ArduPlane/Log.cpp index 23b492f933..5fece2b0c1 100644 --- a/ArduPlane/Log.cpp +++ b/ArduPlane/Log.cpp @@ -27,7 +27,7 @@ void Plane::Log_Write_Attitude(void) targets *= degrees(100.0f); logger.Write_AttitudeView(*quadplane.ahrs_view, targets); } else { - logger.Write_Attitude(ahrs, targets); + logger.Write_Attitude(targets); } if (quadplane.in_vtol_mode() || quadplane.in_assisted_flight()) { // log quadplane PIDs separately from fixed wing PIDs @@ -44,12 +44,12 @@ void Plane::Log_Write_Attitude(void) #if AP_AHRS_NAVEKF_AVAILABLE AP::ahrs_navekf().Log_Write(); - logger.Write_AHRS2(ahrs); + logger.Write_AHRS2(); #endif #if CONFIG_HAL_BOARD == HAL_BOARD_SITL sitl.Log_Write_SIMSTATE(); #endif - logger.Write_POS(ahrs); + logger.Write_POS(); } // do logging at loop rate