mirror of https://github.com/ArduPilot/ardupilot
Rover: use ahrs singleton to log ATT, POS and AHRS2
This commit is contained in:
parent
c30873097a
commit
3fff2eaf6d
|
@ -10,13 +10,13 @@ void Rover::Log_Write_Attitude()
|
||||||
float desired_pitch_cd = degrees(g2.attitude_control.get_desired_pitch()) * 100.0f;
|
float desired_pitch_cd = degrees(g2.attitude_control.get_desired_pitch()) * 100.0f;
|
||||||
const Vector3f targets(0.0f, desired_pitch_cd, 0.0f);
|
const Vector3f targets(0.0f, desired_pitch_cd, 0.0f);
|
||||||
|
|
||||||
logger.Write_Attitude(ahrs, targets);
|
logger.Write_Attitude(targets);
|
||||||
|
|
||||||
#if AP_AHRS_NAVEKF_AVAILABLE
|
#if AP_AHRS_NAVEKF_AVAILABLE
|
||||||
AP::ahrs_navekf().Log_Write();
|
AP::ahrs_navekf().Log_Write();
|
||||||
logger.Write_AHRS2(ahrs);
|
logger.Write_AHRS2();
|
||||||
#endif
|
#endif
|
||||||
logger.Write_POS(ahrs);
|
logger.Write_POS();
|
||||||
|
|
||||||
// log steering rate controller
|
// log steering rate controller
|
||||||
logger.Write_PID(LOG_PIDS_MSG, g2.attitude_control.get_steering_rate_pid().get_pid_info());
|
logger.Write_PID(LOG_PIDS_MSG, g2.attitude_control.get_steering_rate_pid().get_pid_info());
|
||||||
|
|
Loading…
Reference in New Issue