mainloop_count should be uint16_t
This commit is contained in:
parent
61b2b2e32a
commit
0aab4da1a1
@ -452,7 +452,7 @@ static int pmTest1 = 0;
|
|||||||
static unsigned long fast_loopTimer; // Time in miliseconds of main control loop
|
static unsigned long fast_loopTimer; // Time in miliseconds of main control loop
|
||||||
static unsigned long fast_loopTimeStamp; // Time Stamp when fast loop was complete
|
static unsigned long fast_loopTimeStamp; // Time Stamp when fast loop was complete
|
||||||
static uint8_t delta_ms_fast_loop; // Delta Time in miliseconds
|
static uint8_t delta_ms_fast_loop; // Delta Time in miliseconds
|
||||||
static int mainLoop_count;
|
static uint16_t mainLoop_count;
|
||||||
|
|
||||||
static unsigned long medium_loopTimer; // Time in miliseconds of medium loop
|
static unsigned long medium_loopTimer; // Time in miliseconds of medium loop
|
||||||
static byte medium_loopCounter; // Counters for branching from main control loop to slower loops
|
static byte medium_loopCounter; // Counters for branching from main control loop to slower loops
|
||||||
|
@ -455,7 +455,7 @@ static void Log_Write_Performance()
|
|||||||
DataFlash.WriteByte(HEAD_BYTE2);
|
DataFlash.WriteByte(HEAD_BYTE2);
|
||||||
DataFlash.WriteByte(LOG_PERFORMANCE_MSG);
|
DataFlash.WriteByte(LOG_PERFORMANCE_MSG);
|
||||||
DataFlash.WriteLong(millis()- perf_mon_timer);
|
DataFlash.WriteLong(millis()- perf_mon_timer);
|
||||||
DataFlash.WriteInt(mainLoop_count);
|
DataFlash.WriteInt((int16_t)mainLoop_count);
|
||||||
DataFlash.WriteInt(G_Dt_max);
|
DataFlash.WriteInt(G_Dt_max);
|
||||||
DataFlash.WriteByte(dcm.gyro_sat_count);
|
DataFlash.WriteByte(dcm.gyro_sat_count);
|
||||||
DataFlash.WriteByte(imu.adc_constraints);
|
DataFlash.WriteByte(imu.adc_constraints);
|
||||||
|
Loading…
Reference in New Issue
Block a user