AC_Autorotation: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:04 +10:00 committed by Andrew Tridgell
parent 2359ffc7da
commit 65baf8abc7
1 changed files with 2 additions and 1 deletions

View File

@ -252,6 +252,7 @@ float AC_Autorotation::get_rpm(bool update_counter)
}
#if HAL_LOGGING_ENABLED
void AC_Autorotation::Log_Write_Autorotation(void) const
{
// @LoggerMessage: AROT
@ -289,7 +290,7 @@ void AC_Autorotation::Log_Write_Autorotation(void) const
(double)_accel_target,
(double)_pitch_target);
}
#endif // HAL_LOGGING_ENABLED
// Initialise forward speed controller
void AC_Autorotation::init_fwd_spd_controller(void)