mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 02:13:33 +08:00
vtol fixes:
- mc pos control: publish attitude setpoint when vtol is in trans mode - fw att control: do not publish attitude setpoint when in transition mode - introduce flag in_transition_mode in vehicle status message for vtol - improve tiltrotor code based on flight testing
This commit is contained in:
@@ -1459,7 +1459,7 @@ MulticopterPositionControl::task_main()
|
||||
if (!(_control_mode.flag_control_offboard_enabled &&
|
||||
!(_control_mode.flag_control_position_enabled ||
|
||||
_control_mode.flag_control_velocity_enabled))) {
|
||||
if (_att_sp_pub != nullptr && _vehicle_status.is_rotary_wing) {
|
||||
if (_att_sp_pub != nullptr && (_vehicle_status.is_rotary_wing || _vehicle_status.in_transition_mode)) {
|
||||
orb_publish(ORB_ID(vehicle_attitude_setpoint), _att_sp_pub, &_att_sp);
|
||||
} else if (_att_sp_pub == nullptr && _vehicle_status.is_rotary_wing){
|
||||
_att_sp_pub = orb_advertise(ORB_ID(vehicle_attitude_setpoint), &_att_sp);
|
||||
|
||||
Reference in New Issue
Block a user