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.
maneuver
Scripted maneuvers: a Maneuver is a short list of Segments, each a body rate about one axis held until an angle has turned or a time has passed, or a pause, and a ManeuverRunner flies one from the attitude it starts at, then levels the wings and hands back.
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.
Maneuver
A sequence of Segments flown in order by a ManeuverRunner. Copy and fixed-size, so a script or a mission can hold one without allocating.
ManeuverConfig
ManeuverRunner settings.
ManeuverRunner
Flies a Maneuver: its segments in order from the attitude it starts at, then a recovery to level (RecoveryConfig), then nothing, so the caller (a script, a route) flies on. The caller decides where it starts: level, at the speed and height the maneuver needs.
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.