From 7be36740c3138abaca1b3c249afffb1e68a3e81e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 31 Jul 2024 07:39:07 +1000 Subject: [PATCH] AP_QuickTune: added logger documentation fixes CI test --- libraries/AP_Quicktune/AP_Quicktune.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Quicktune/AP_Quicktune.cpp b/libraries/AP_Quicktune/AP_Quicktune.cpp index 874d6b02e6bc4a..78a9096d39b7fd 100644 --- a/libraries/AP_Quicktune/AP_Quicktune.cpp +++ b/libraries/AP_Quicktune/AP_Quicktune.cpp @@ -718,10 +718,23 @@ float AP_Quicktune::gain_limit(AP_Quicktune::Param param) return 0.0; } + +// @LoggerMessage: QUIK +// @Description: Quicktune +// @Field: TimeUS: Time since system startup +// @Field: SRate: slew rate +// @Field: Gain: test gain for current axis and PID element +// @Field: Param: name of parameter being being tuned +// @Field: ParamNo: number of parameter being tuned void AP_Quicktune::Write_QUIK(float srate, float gain, AP_Quicktune::Param param) { #if HAL_LOGGING_ENABLED - AP::logger().WriteStreaming("QUIK","TimeUS,SRate,Gain,Param,ParamNo", "QffNI", AP_HAL::micros64(), srate, gain, get_param_name(param), int(param)); + AP::logger().WriteStreaming("QUIK","TimeUS,SRate,Gain,Param,ParamNo", "QffNI", + AP_HAL::micros64(), + srate, + gain, + get_param_name(param), + unsigned(param)); #endif }