Browse Source

Plane: fixed PM message

master
Andrew Tridgell 11 years ago
parent
commit
26a3860af2
  1. 2
      ArduPlane/ArduPlane.pde
  2. 2
      ArduPlane/Log.pde

2
ArduPlane/ArduPlane.pde

@ -954,9 +954,9 @@ static void one_second_loop() @@ -954,9 +954,9 @@ static void one_second_loop()
if (scheduler.debug() != 0) {
hal.console->printf_P(PSTR("G_Dt_max=%lu\n"), (unsigned long)G_Dt_max);
}
G_Dt_max = 0;
if (g.log_bitmask & MASK_LOG_PM)
Log_Write_Performance();
G_Dt_max = 0;
resetPerfData();
}

2
ArduPlane/Log.pde

@ -446,7 +446,7 @@ static const struct LogStructure log_structure[] PROGMEM = { @@ -446,7 +446,7 @@ static const struct LogStructure log_structure[] PROGMEM = {
{ LOG_ATTITUDE_MSG, sizeof(log_Attitude),
"ATT", "ccC", "Roll,Pitch,Yaw" },
{ LOG_PERFORMANCE_MSG, sizeof(log_Performance),
"PM", "IHIBBBhhhhB", "LTime,MLC,gDt,RNCnt,RNBl,GPScnt,GDx,GDy,GDz,I2CErr" },
"PM", "IHIBBBhhhB", "LTime,MLC,gDt,RNCnt,RNBl,GPScnt,GDx,GDy,GDz,I2CErr" },
{ LOG_CMD_MSG, sizeof(log_Cmd),
"CMD", "BBBBBeLL", "CTot,CNum,CId,COpt,Prm1,Alt,Lat,Lng" },
{ LOG_CAMERA_MSG, sizeof(log_Camera),

Loading…
Cancel
Save