Skip to content

Commit

Permalink
AP_QuickTune: added logger documentation
Browse files Browse the repository at this point in the history
fixes CI test
  • Loading branch information
tridge authored and MichelleRos committed Jul 31, 2024
1 parent 7e1130f commit 7be3674
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion libraries/AP_Quicktune/AP_Quicktune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7be3674

Please sign in to comment.