mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-26 01:00:36 +08:00
feat(navigator): add Guided Course mode for fixed-wing
Implements a new GUIDED_COURSE navigator mode that maintains a constant ground-track bearing, altitude, and airspeed without manual stick input. The mode is activated via MAVLink and accepts real-time in-flight updates: - MAV_CMD_GUIDED_CHANGE_HEADING (HEADING_TYPE_COURSE_OVER_GROUND): set course - MAV_CMD_DO_CHANGE_ALTITUDE: adjust target altitude - MAV_CMD_DO_CHANGE_SPEED: adjust target airspeed On activation the vehicle captures its current velocity vector as the initial course bearing. A valid horizontal velocity estimate (GPS or dead-reckoning) is required; course commands are rejected if unavailable.
This commit is contained in:
1 parent
e89d7a2dd2
commit
8b3ef1cf9e
18 files changed
+400
-74
No files matched your search
@@ -509,6 +509,7 @@ bool Failsafe::isFailsafeIgnored(uint8_t user_intended_mode, int32_t exception_m
|
||||
case vehicle_status_s::NAVIGATION_STATE_AUTO_FOLLOW_TARGET:
|
||||
case vehicle_status_s::NAVIGATION_STATE_AUTO_PRECLAND:
|
||||
case vehicle_status_s::NAVIGATION_STATE_ORBIT:
|
||||
case vehicle_status_s::NAVIGATION_STATE_GUIDED_COURSE:
|
||||
return exception_mask_parameter & (int)LinkLossExceptionBits::AutoModes;
|
||||
|
||||
case vehicle_status_s::NAVIGATION_STATE_OFFBOARD:
|
||||
|
||||
Reference in new issue
Block a user