mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
Plane: Log VTOL targets in ATT message in VTOL mode
This commit is contained in:
parent
7372a7b5f9
commit
e50414d8b9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user