AP_Scripting: mavlink_msgs global-position-int and heartbeat

This commit is contained in:
Randy Mackay 2024-07-26 21:12:59 +09:00
parent 51ec6dfd73
commit bff288d498
2 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -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