mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Scripting: mavlink_msgs global-position-int and heartbeat
This commit is contained in:
parent
51ec6dfd73
commit
bff288d498
libraries/AP_Scripting/modules/MAVLink
@ -0,0 +1,14 @@
|
||||
local GLOBAL_POSITION_INT = {}
|
||||
GLOBAL_POSITION_INT.id = 33
|
||||
GLOBAL_POSITION_INT.fields = {
|
||||
{ "time_boot_ms", "<I4" },
|
||||
{ "lat", "<i4" },
|
||||
{ "lon", "<i4" },
|
||||
{ "alt", "<i4" },
|
||||
{ "relative_alt", "<i4" },
|
||||
{ "vx", "<i2" },
|
||||
{ "vy", "<i2" },
|
||||
{ "vz", "<i2" },
|
||||
{ "hdg", "<I2" },
|
||||
}
|
||||
return GLOBAL_POSITION_INT
|
@ -0,0 +1,11 @@
|
||||
local HEARTBEAT = {}
|
||||
HEARTBEAT.id = 0
|
||||
HEARTBEAT.fields = {
|
||||
{ "custom_mode", "<I4" },
|
||||
{ "type", "<B" },
|
||||
{ "autopilot", "<B" },
|
||||
{ "base_mode", "<B" },
|
||||
{ "system_status", "<B" },
|
||||
{ "mavlink_version", "<B" },
|
||||
}
|
||||
return HEARTBEAT
|
Loading…
Reference in New Issue
Block a user