Interface IMavlinkConnection
Abstraction over a MAVLink transport that publishes inbound messages as typed events and accepts outbound messages via Send<T>(T). MavlinkConnection is the production implementation; tests substitute a fake that drives the same events synthetically.
public interface IMavlinkConnection : IAsyncDisposable
- Inherited Members
Methods
Send<T>(T)
Send a generated MAVLink message. Performs MAVLink v2 wire truncation and CRC stamping.
void Send<T>(T message) where T : IMavlinkMessage<T>
Parameters
messageT
Type Parameters
T
Events
CommandAckReceived
Inbound COMMAND_ACK.
event Action<MavId, CommandAck, DateTime>? CommandAckReceived
Event Type
ExtendedSysStateReceived
Inbound EXTENDED_SYS_STATE.
event Action<MavId, ExtendedSysState, DateTime>? ExtendedSysStateReceived
Event Type
GlobalPositionIntReceived
Inbound GLOBAL_POSITION_INT.
event Action<MavId, GlobalPositionInt, DateTime>? GlobalPositionIntReceived
Event Type
GpsRawIntReceived
Inbound GPS_RAW_INT.
event Action<MavId, GpsRawInt, DateTime>? GpsRawIntReceived
Event Type
HeartbeatReceived
Inbound HEARTBEAT. Args: sender, decoded message, receive timestamp.
event Action<MavId, Heartbeat, DateTime>? HeartbeatReceived
Event Type
MissionAckReceived
Inbound MISSION_ACK.
event Action<MavId, MissionAck, DateTime>? MissionAckReceived
Event Type
MissionClearAllReceived
Inbound MISSION_CLEAR_ALL.
event Action<MavId, MissionClearAll, DateTime>? MissionClearAllReceived
Event Type
MissionCountReceived
Inbound MISSION_COUNT.
event Action<MavId, MissionCount, DateTime>? MissionCountReceived
Event Type
MissionCurrentReceived
Inbound MISSION_CURRENT.
event Action<MavId, MissionCurrent, DateTime>? MissionCurrentReceived
Event Type
MissionItemIntReceived
Inbound MISSION_ITEM_INT.
event Action<MavId, MissionItemInt, DateTime>? MissionItemIntReceived
Event Type
MissionItemReachedReceived
Inbound MISSION_ITEM_REACHED.
event Action<MavId, MissionItemReached, DateTime>? MissionItemReachedReceived
Event Type
MissionRequestIntReceived
Inbound MISSION_REQUEST_INT.
event Action<MavId, MissionRequestInt, DateTime>? MissionRequestIntReceived
Event Type
MissionRequestListReceived
Inbound MISSION_REQUEST_LIST.
event Action<MavId, MissionRequestList, DateTime>? MissionRequestListReceived
Event Type
MissionRequestReceived
Inbound MISSION_REQUEST (deprecated, but ArduPilot still sends it — respond with a MISSION_ITEM_INT).
event Action<MavId, MissionRequest, DateTime>? MissionRequestReceived
Event Type
SysStatusReceived
Inbound SYS_STATUS.
event Action<MavId, SysStatus, DateTime>? SysStatusReceived
Event Type
VfrHudReceived
Inbound VFR_HUD.
event Action<MavId, VfrHud, DateTime>? VfrHudReceived