Expand description
A MAVLink vehicle modelled as a pamoja [Device].
Vehicle wraps a Connection over any ByteLink and presents an autopilot through
the core device traits, so a PX4 or ArduPilot vehicle drives like any other pamoja device
from any language binding. It maps the three surfaces a ground station needs onto the
device model:
- [
Device] -connectwaits for the vehicle’s first heartbeat (and learns its system and component id), and the vehicle’s stableidis its MAVLink address. - [
Telemetry] -next_frameyields the next decoded telemetryReport. - [
Actuator] -applystreams an offboardSetpoint.
On top of those it offers the mission and command surfaces as async methods that drive the
sans-IO protocol machines over the link, applying the mission
protocol’s timeout-and-retransmit rules: upload_mission and
download_mission run the plan transfer, and
send_command (with arm,
set_mode, takeoff, and friends) run the command
protocol.
This layer is available with the default std feature; the wire core and the protocol
machines below it are no_std.
Structs§
Enums§
- Report
- A decoded telemetry report from a
Vehicle. - Setpoint
- An offboard control setpoint, in the local or global frame.
Constants§
- GCS_
COMPONENT - The conventional ground-station component id.