mirror of https://github.com/ArduPilot/ardupilot
AP_Mission: move Mission log structures into Mission library
This commit is contained in:
parent
b98e682ec6
commit
1d947396b3
|
@ -0,0 +1,41 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <AP_Logger/LogStructure.h>
|
||||||
|
|
||||||
|
#define LOG_IDS_FROM_MISSION \
|
||||||
|
LOG_CMD_MSG
|
||||||
|
|
||||||
|
|
||||||
|
// @LoggerMessage: CMD
|
||||||
|
// @Description: Executed mission command information
|
||||||
|
// @Field: TimeUS: Time since system startup
|
||||||
|
// @Field: CTot: Total number of mission commands
|
||||||
|
// @Field: CNum: This command's offset in mission
|
||||||
|
// @Field: CId: Command type
|
||||||
|
// @Field: Prm1: Parameter 1
|
||||||
|
// @Field: Prm2: Parameter 2
|
||||||
|
// @Field: Prm3: Parameter 3
|
||||||
|
// @Field: Prm4: Parameter 4
|
||||||
|
// @Field: Lat: Command latitude
|
||||||
|
// @Field: Lng: Command longitude
|
||||||
|
// @Field: Alt: Command altitude
|
||||||
|
// @Field: Frame: Frame used for position
|
||||||
|
struct PACKED log_CMD {
|
||||||
|
LOG_PACKET_HEADER;
|
||||||
|
uint64_t time_us;
|
||||||
|
uint16_t command_total;
|
||||||
|
uint16_t sequence;
|
||||||
|
uint16_t command;
|
||||||
|
float param1;
|
||||||
|
float param2;
|
||||||
|
float param3;
|
||||||
|
float param4;
|
||||||
|
int32_t latitude;
|
||||||
|
int32_t longitude;
|
||||||
|
float altitude;
|
||||||
|
uint8_t frame;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define LOG_STRUCTURE_FROM_MISSION \
|
||||||
|
{ LOG_CMD_MSG, sizeof(log_CMD), \
|
||||||
|
"CMD", "QHHHffffLLfB","TimeUS,CTot,CNum,CId,Prm1,Prm2,Prm3,Prm4,Lat,Lng,Alt,Frame", "s-------DUm-", "F-------GG0-" },
|
Loading…
Reference in New Issue