|
|
|
@ -397,23 +397,6 @@ static void Log_Write_Attitude()
@@ -397,23 +397,6 @@ static void Log_Write_Attitude()
|
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
struct PACKED log_Mode { |
|
|
|
|
LOG_PACKET_HEADER; |
|
|
|
|
uint8_t mode; |
|
|
|
|
int16_t throttle_cruise; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// Write a mode packet |
|
|
|
|
static void Log_Write_Mode(uint8_t mode) |
|
|
|
|
{ |
|
|
|
|
struct log_Mode pkt = { |
|
|
|
|
LOG_PACKET_HEADER_INIT(LOG_MODE_MSG), |
|
|
|
|
mode : mode, |
|
|
|
|
throttle_cruise : g.throttle_cruise, |
|
|
|
|
}; |
|
|
|
|
DataFlash.WriteBlock(&pkt, sizeof(pkt)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
struct PACKED log_Startup { |
|
|
|
|
LOG_PACKET_HEADER; |
|
|
|
|
}; |
|
|
|
@ -577,8 +560,6 @@ static const struct LogStructure log_structure[] PROGMEM = {
@@ -577,8 +560,6 @@ static const struct LogStructure log_structure[] PROGMEM = {
|
|
|
|
|
"CTUN", "Ihhhffecchh", "TimeMS,ThrIn,AngBst,ThrOut,DAlt,Alt,BarAlt,DSAlt,SAlt,DCRt,CRt" }, |
|
|
|
|
{ LOG_PERFORMANCE_MSG, sizeof(log_Performance), |
|
|
|
|
"PM", "HHIhBHB", "NLon,NLoop,MaxT,PMT,I2CErr,INSErr,INAVErr" }, |
|
|
|
|
{ LOG_MODE_MSG, sizeof(log_Mode), |
|
|
|
|
"MODE", "Mh", "Mode,ThrCrs" }, |
|
|
|
|
{ LOG_STARTUP_MSG, sizeof(log_Startup), |
|
|
|
|
"STRT", "", "" }, |
|
|
|
|
{ LOG_EVENT_MSG, sizeof(log_Event), |
|
|
|
@ -637,7 +618,7 @@ static void start_logging()
@@ -637,7 +618,7 @@ static void start_logging()
|
|
|
|
|
DataFlash.Log_Write_Message_P(PSTR("Frame: " FRAME_CONFIG_STRING)); |
|
|
|
|
|
|
|
|
|
// log the flight mode |
|
|
|
|
Log_Write_Mode(control_mode); |
|
|
|
|
DataFlash.Log_Write_Mode(control_mode); |
|
|
|
|
} |
|
|
|
|
// enable writes |
|
|
|
|
DataFlash.EnableWrites(true); |
|
|
|
|