mirror of https://github.com/ArduPilot/ardupilot
23 lines
524 B
C
23 lines
524 B
C
|
#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
|
||
|
// @Field: rpm1: First sensor's data
|
||
|
// @Field: rpm2: Second sensor's data
|
||
|
struct PACKED log_RPM {
|
||
|
LOG_PACKET_HEADER;
|
||
|
uint64_t time_us;
|
||
|
float rpm1;
|
||
|
float rpm2;
|
||
|
};
|
||
|
|
||
|
#define LOG_STRUCTURE_FROM_RPM \
|
||
|
{ LOG_RPM_MSG, sizeof(log_RPM), \
|
||
|
"RPM", "Qff", "TimeUS,rpm1,rpm2", "sqq", "F00" , true },
|