mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Logger: add Write_NamedValueFloat
for getting diagnostics into the code during ddebug fast
This commit is contained in:
parent
f5d6e167b5
commit
8ff9fc0f70
@ -912,6 +912,20 @@ void AP_Logger::Write_Fence()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void AP_Logger::Write_NamedValueFloat(const char *name, float value)
|
||||||
|
{
|
||||||
|
WriteStreaming(
|
||||||
|
"NVF",
|
||||||
|
"TimeUS,Name,Value",
|
||||||
|
"s#-",
|
||||||
|
"F--",
|
||||||
|
"QNf",
|
||||||
|
AP_HAL::micros(),
|
||||||
|
name,
|
||||||
|
value
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// output a FMT message for each backend if not already done so
|
// output a FMT message for each backend if not already done so
|
||||||
void AP_Logger::Safe_Write_Emit_FMT(log_write_fmt *f)
|
void AP_Logger::Safe_Write_Emit_FMT(log_write_fmt *f)
|
||||||
{
|
{
|
||||||
|
@ -247,6 +247,7 @@ public:
|
|||||||
#if HAL_LOGGER_FENCE_ENABLED
|
#if HAL_LOGGER_FENCE_ENABLED
|
||||||
void Write_Fence();
|
void Write_Fence();
|
||||||
#endif
|
#endif
|
||||||
|
void Write_NamedValueFloat(const char *name, float value);
|
||||||
void Write_Power(void);
|
void Write_Power(void);
|
||||||
void Write_Radio(const mavlink_radio_t &packet);
|
void Write_Radio(const mavlink_radio_t &packet);
|
||||||
void Write_Message(const char *message);
|
void Write_Message(const char *message);
|
||||||
|
Loading…
Reference in New Issue
Block a user