Skip to main content

Module commanders

Module commanders 

Source
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§

EmptyWaypoints
Returned by WaypointFollower::new when given no waypoints; there is nothing to fly.
FailsafeCommander
Flies a link-fed primary while it is fresh, and a fallback otherwise.
FailsafeConfig
When a FailsafeCommander falls back, and when it returns.
HoldCommander
A Fallback that holds position: when engaged, it latches where the vehicle is (horizontal position and altitude) and its arm state, then flies a waypoint there, at most cruise_speed_mps back to it after any drift. It never arms a disarmed vehicle.
TouchdownDetector
Detects touchdown during a land (ControlInput::Land) from the vertical speed alone.
WaypointFollower
A Commander that flies a sequence of waypoints.

Enums§

RouteEnd
What a WaypointFollower does 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 Commander that flies while a FailsafeCommander’s primary is stale.
LinkedCommander
A Commander fed by a link, which knows how long ago it last heard it.