Copter: Log NTUN while in LAND mode with GPS
This commit is contained in:
parent
b212c02057
commit
3993927cb7
@ -1112,7 +1112,7 @@ static void ten_hz_logging_loop()
|
||||
if (g.log_bitmask & MASK_LOG_RCOUT) {
|
||||
DataFlash.Log_Write_RCOUT();
|
||||
}
|
||||
if ((g.log_bitmask & MASK_LOG_NTUN) && mode_requires_GPS(control_mode)) {
|
||||
if ((g.log_bitmask & MASK_LOG_NTUN) && (mode_requires_GPS(control_mode) || landing_with_GPS())) {
|
||||
Log_Write_Nav_Tuning();
|
||||
}
|
||||
}
|
||||
|
@ -227,3 +227,8 @@ static void set_mode_land_with_pause()
|
||||
set_mode(LAND);
|
||||
land_pause = true;
|
||||
}
|
||||
|
||||
// landing_with_GPS - returns true if vehicle is landing using GPS
|
||||
static bool landing_with_GPS() {
|
||||
return (control_mode == LAND && land_with_gps);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user