Copter: use AHRS_View for RATE logging
This commit is contained in:
parent
4ea9f329e2
commit
7783a7ea58
@ -70,7 +70,7 @@ void Copter::Log_Write_Attitude()
|
||||
Vector3f targets = attitude_control->get_att_target_euler_cd();
|
||||
targets.z = wrap_360_cd(targets.z);
|
||||
DataFlash.Log_Write_Attitude(ahrs, targets);
|
||||
DataFlash.Log_Write_Rate(ahrs, *motors, *attitude_control, *pos_control);
|
||||
DataFlash.Log_Write_Rate(ahrs_view, *motors, *attitude_control, *pos_control);
|
||||
if (should_log(MASK_LOG_PID)) {
|
||||
DataFlash.Log_Write_PID(LOG_PIDR_MSG, attitude_control->get_rate_roll_pid().get_pid_info());
|
||||
DataFlash.Log_Write_PID(LOG_PIDP_MSG, attitude_control->get_rate_pitch_pid().get_pid_info());
|
||||
|
Loading…
Reference in New Issue
Block a user