mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
ACM : loging ApState at faster rate
This commit is contained in:
parent
9735a0eff1
commit
9e0b0b9fcd
@ -1013,7 +1013,6 @@ void loop()
|
|||||||
if (g.log_bitmask & MASK_LOG_PM)
|
if (g.log_bitmask & MASK_LOG_PM)
|
||||||
Log_Write_Performance();
|
Log_Write_Performance();
|
||||||
|
|
||||||
Log_Write_Data(DATA_AP_STATE, ap.value);
|
|
||||||
gps_fix_count = 0;
|
gps_fix_count = 0;
|
||||||
perf_mon_counter = 0;
|
perf_mon_counter = 0;
|
||||||
}
|
}
|
||||||
@ -1309,7 +1308,6 @@ static void slow_loop()
|
|||||||
if(motors.armed()) {
|
if(motors.armed()) {
|
||||||
if (g.log_bitmask & MASK_LOG_ITERM)
|
if (g.log_bitmask & MASK_LOG_ITERM)
|
||||||
Log_Write_Iterm();
|
Log_Write_Iterm();
|
||||||
Log_Write_Data(DATA_SIMPLE_BEARING, initial_simple_bearing);
|
|
||||||
}else{
|
}else{
|
||||||
// check the user hasn't updated the frame orientation
|
// check the user hasn't updated the frame orientation
|
||||||
motors.set_frame_orientation(g.frame_orientation);
|
motors.set_frame_orientation(g.frame_orientation);
|
||||||
@ -1369,6 +1367,8 @@ static void slow_loop()
|
|||||||
// 1Hz loop
|
// 1Hz loop
|
||||||
static void super_slow_loop()
|
static void super_slow_loop()
|
||||||
{
|
{
|
||||||
|
Log_Write_Data(DATA_AP_STATE, ap.value);
|
||||||
|
|
||||||
if (g.log_bitmask & MASK_LOG_CUR && motors.armed())
|
if (g.log_bitmask & MASK_LOG_CUR && motors.armed())
|
||||||
Log_Write_Current();
|
Log_Write_Current();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user