Expand description
Hardware-independent Commander implementations.
Commanders that need an OS, files, or input devices (joysticks, CSV scripts) live in
stable-flight-sitl; they build on the ones here.
Modules§
- failsafe
- Falling back when a link-fed commander goes quiet: see
FailsafeCommander. - touchdown
- Decides when a landing vehicle has touched down: see
TouchdownDetector. - waypoint
- Follows a fixed list of waypoints, looping, holding, or landing at the end.
Structs§
- Empty
Waypoints - Returned by
WaypointFollower::newwhen given no waypoints; there is nothing to fly. - Failsafe
Commander - Flies a link-fed
primarywhile it is fresh, and afallbackotherwise. - Failsafe
Config - When a
FailsafeCommanderfalls back, and when it returns. - Hold
Commander - A
Fallbackthat holds position: when engaged, it latches where the vehicle is (horizontal position and altitude) and its arm state, then flies a waypoint there, at mostcruise_speed_mpsback to it after any drift. It never arms a disarmed vehicle. - Touchdown
Detector - Detects touchdown during a land (
ControlInput::Land) from the vertical speed alone. - Waypoint
Follower - A
Commanderthat flies a sequence of waypoints.
Enums§
- Route
End - What a
WaypointFollowerdoes after reaching the last waypoint.
Constants§
- DEFAULT_
HOLD_ SPEED_ MPS HoldCommander’s default speed back to the hold point, in m/s.
Traits§
- Fallback
- A
Commanderthat flies while aFailsafeCommander’s primary is stale. - Linked
Commander - A
Commanderfed by a link, which knows how long ago it last heard it.