Skip to content

Document SMVZ and TEMP log messages #30110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -3118,12 +3118,9 @@ def LoggerDocumentation_greylist(self):
"SL2", # glider-sim
"SLD", # glider-sim

"SMVZ", # Sim-Volz

"SORC", # Soaring

"TCLR", # tempcal
"TEMP", # temperature sensor library

"CC", # AC_CustomControl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ bool AP_TemperatureSensor_Backend::healthy(void) const
#if HAL_LOGGING_ENABLED
void AP_TemperatureSensor_Backend::Log_Write_TEMP() const
{
// @LoggerMessage: TEMP
// @Description: Temperature Sensor Data
// @Field: TimeUS: Time since system startup
// @Field: Instance: temperature sensor instance
// @Field: Temp: temperature
AP::logger().Write("TEMP",
"TimeUS," "Instance," "Temp" , // labels
"s" "#" "O" , // units
Expand Down
10 changes: 10 additions & 0 deletions libraries/SITL/SIM_Volz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ void Volz::update_sitl_input_pwm(struct sitl_input &input)
#if HAL_LOGGING_ENABLED
void Volz::log_Servo(const Volz::Servo &servo, const uint32_t now_us)
{
// @LoggerMessage: SMVZ
// @Description: Simulated Volz servo information
// @Field: TimeUS: Time since system startup
// @Field: Id: Volz servo ID
// @Field: Pos: Current Simulated Position
// @Field: DesPos: Desired Simulated Position
// @Field: V: simulated servo voltage
// @Field: A: simulated servo current
// @Field: PCBT: simulated PCB Temperature
// @Field: MotT: simulated motor Temperature
AP::logger().WriteStreaming(
"SMVZ",
"TimeUS," "Id," "Pos," "DesPos," "V," "A," "PCBT," "MotT" ,
Expand Down
Loading