Plane: Log VTOL targets in ATT message in VTOL mode

This commit is contained in:
Leonard Hall 2018-09-14 22:44:32 +09:30 committed by Andrew Tridgell
parent 7372a7b5f9
commit e50414d8b9

View File

@ -19,6 +19,10 @@ void Plane::Log_Write_Attitude(void)
if (quadplane.tailsitter_active()) {
DataFlash.Log_Write_AttitudeView(*quadplane.ahrs_view, targets);
} else if (quadplane.in_vtol_mode()) {
targets = quadplane.attitude_control->get_att_target_euler_cd();
DataFlash.Log_Write_Attitude(ahrs, targets);
} else {
DataFlash.Log_Write_Attitude(ahrs, targets);
}