AP_Logger: call wrap_360_cd on yaw in WriteAttitudeView
This commit is contained in:
parent
0858847294
commit
c9c802f617
@ -1377,8 +1377,8 @@ void AP_Logger::Write_AttitudeView(AP_AHRS_View &ahrs, const Vector3f &targets)
|
|||||||
roll : (int16_t)ahrs.roll_sensor,
|
roll : (int16_t)ahrs.roll_sensor,
|
||||||
control_pitch : (int16_t)targets.y,
|
control_pitch : (int16_t)targets.y,
|
||||||
pitch : (int16_t)ahrs.pitch_sensor,
|
pitch : (int16_t)ahrs.pitch_sensor,
|
||||||
control_yaw : (uint16_t)targets.z,
|
control_yaw : (uint16_t)wrap_360_cd(targets.z),
|
||||||
yaw : (uint16_t)ahrs.yaw_sensor,
|
yaw : (uint16_t)wrap_360_cd(ahrs.yaw_sensor),
|
||||||
error_rp : (uint16_t)(ahrs.get_error_rp() * 100),
|
error_rp : (uint16_t)(ahrs.get_error_rp() * 100),
|
||||||
error_yaw : (uint16_t)(ahrs.get_error_yaw() * 100)
|
error_yaw : (uint16_t)(ahrs.get_error_yaw() * 100)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user