Documentation for driver/mavlink/support/Messages.kt¶
-
data class
MAVLinkSystem
¶
A simple value type to represent a MAVLink system
- since
1.0.0
- author
IFS Institute for Software
-
fun
createHeartbeatMessage
(sender: MAVLinkSystem, schema: MAVLinkSchema) : MAVLinkMessage¶
Create a new MAVLink ‘Heartbeat’ message
- parameter sender
The sender system
- parameter schema
The message schema
- returns
A new MAVLink ‘Heartbeat’ message
-
fun
createArmMessage
(sender: MAVLinkSystem, target: MAVLinkSystem, schema: MAVLinkSchema) : MAVLinkMessage¶
Create a new MAVLink ‘Arm’ message
- parameter sender
The sender system
- parameter target
The target system
- parameter schema
The message schema
- returns
a new MAVLink ‘Long NativeCommand’ message containing an ‘Arm’ command
-
fun
createDisarmMessage
(sender: MAVLinkSystem, target: MAVLinkSystem, schema: MAVLinkSchema) : MAVLinkMessage¶
Create a new MAVLink ‘Disarm’ message
- parameter sender
The sender system
- parameter target
The target system
- parameter schema
The message schema
- returns
a new MAVLink ‘Long NativeCommand’ message containing a ‘Disarm’ command
-
fun
createRequestAutopilotCapabilitiesMessage
(sender: MAVLinkSystem, target: MAVLinkSystem, schema: MAVLinkSchema) : MAVLinkMessage¶
Create a new MAVLink ‘Request Autopilot Capabilities’ message
- parameter sender
The sender system
- parameter target
The target system
- parameter schema
The message schema
- returns
a new MAVLink ‘Long NativeCommand’ message containing a ‘Request Autopilot Capabilities’ command