Rover: privatize AHRS logging

This commit is contained in:
Josh Henderson 2021-01-09 03:08:18 -05:00 committed by Peter Barker
parent aaa1341b75
commit a54736430d
1 changed files with 3 additions and 3 deletions

View File

@ -10,13 +10,13 @@ void Rover::Log_Write_Attitude()
float desired_pitch_cd = degrees(g2.attitude_control.get_desired_pitch()) * 100.0f;
const Vector3f targets(0.0f, desired_pitch_cd, 0.0f);
logger.Write_Attitude(targets);
ahrs.Write_Attitude(targets);
#if AP_AHRS_NAVEKF_AVAILABLE
AP::ahrs_navekf().Log_Write();
logger.Write_AHRS2();
ahrs.Write_AHRS2();
#endif
logger.Write_POS();
ahrs.Write_POS();
// log steering rate controller
logger.Write_PID(LOG_PIDS_MSG, g2.attitude_control.get_steering_rate_pid().get_pid_info());