mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-28 19:21:03 +08:00
fix(mavlink): Allowing custom modes to request offboard setpoints via the external mode registration (#26949)
* forwarding offboard setpoints in modes using the external mode registration * requesting offboard setpoint in RAPTOR * adding old message versions * bumping vehicle status * adding message translations * updating reference to versioned old message on previous translations
This commit is contained in:
1 parent
885fe14ee6
commit
abc756bf34
14 files changed
+347
-8
No files matched your search
@@ -2026,6 +2026,7 @@ void Commander::run()
|
||||
|
||||
// vehicle_status publish (after prearm/preflight updates above)
|
||||
_mode_management.getModeStatus(_vehicle_status.valid_nav_states_mask, _vehicle_status.can_set_nav_states_mask);
|
||||
_vehicle_status.accepts_offboard_setpoints = _mode_management.currentModeAcceptsOffboardSetpoints(_vehicle_status.nav_state);
|
||||
_vehicle_status.timestamp = hrt_absolute_time();
|
||||
_vehicle_status_pub.publish(_vehicle_status);
|
||||
|
||||
|
||||
Reference in new issue
Block a user