AP_Logger: call wrap_360_cd on yaw in WriteAttitudeView

This commit is contained in:
Mark Whitehorn 2019-02-14 14:07:58 -07:00 committed by Randy Mackay
parent 0858847294
commit c9c802f617
1 changed files with 2 additions and 2 deletions

View File

@ -1377,8 +1377,8 @@ void AP_Logger::Write_AttitudeView(AP_AHRS_View &ahrs, const Vector3f &targets)
roll : (int16_t)ahrs.roll_sensor,
control_pitch : (int16_t)targets.y,
pitch : (int16_t)ahrs.pitch_sensor,
control_yaw : (uint16_t)targets.z,
yaw : (uint16_t)ahrs.yaw_sensor,
control_yaw : (uint16_t)wrap_360_cd(targets.z),
yaw : (uint16_t)wrap_360_cd(ahrs.yaw_sensor),
error_rp : (uint16_t)(ahrs.get_error_rp() * 100),
error_yaw : (uint16_t)(ahrs.get_error_yaw() * 100)
};