Plane: log: only log yaw and steer PIDs when active
This commit is contained in:
parent
ad32d277ff
commit
fef42ecd8c
@ -42,8 +42,14 @@ void Plane::Log_Write_Attitude(void)
|
||||
|
||||
logger.Write_PID(LOG_PIDR_MSG, rollController.get_pid_info());
|
||||
logger.Write_PID(LOG_PIDP_MSG, pitchController.get_pid_info());
|
||||
logger.Write_PID(LOG_PIDY_MSG, yawController.get_pid_info());
|
||||
logger.Write_PID(LOG_PIDS_MSG, steerController.get_pid_info());
|
||||
|
||||
if (yawController.enabled()) {
|
||||
logger.Write_PID(LOG_PIDY_MSG, yawController.get_pid_info());
|
||||
}
|
||||
|
||||
if (steerController.active()) {
|
||||
logger.Write_PID(LOG_PIDS_MSG, steerController.get_pid_info());
|
||||
}
|
||||
|
||||
AP::ahrs().Log_Write();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user