2022-03-03 20:36:14 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_Logger/LogStructure.h>
|
|
|
|
|
|
|
|
#define LOG_IDS_FROM_RPM \
|
|
|
|
LOG_RPM_MSG
|
|
|
|
|
|
|
|
// @LoggerMessage: RPM
|
|
|
|
// @Description: Data from RPM sensors
|
|
|
|
// @Field: TimeUS: Time since system startup
|
2024-06-14 13:56:14 -03:00
|
|
|
// @Field: I: Instance
|
|
|
|
// @Field: RPM: Sensor's rpm measurement
|
|
|
|
// @Field: Qual: Signal quality
|
|
|
|
// @Field: H: Sensor Health (Bool)
|
2022-03-03 20:36:14 -04:00
|
|
|
struct PACKED log_RPM {
|
|
|
|
LOG_PACKET_HEADER;
|
|
|
|
uint64_t time_us;
|
2024-06-14 13:56:14 -03:00
|
|
|
uint8_t inst;
|
|
|
|
float rpm;
|
|
|
|
float quality;
|
|
|
|
uint8_t health;
|
2022-03-03 20:36:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#define LOG_STRUCTURE_FROM_RPM \
|
|
|
|
{ LOG_RPM_MSG, sizeof(log_RPM), \
|
2024-06-14 13:56:14 -03:00
|
|
|
"RPM", "QBffB", "TimeUS,I,RPM,Qual,H", "s#q--", "F-000" , true },
|