-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Description
During preparations for this's years' Japan Innovation Challenge (JIC) we noticed that the copter-slung-payload.lua script (running on a CubeOrangePlus running AP-4.7.0-dev) could receive corrupted GLOBAL_POSITION_INT messages with impossible lat, lon and alt values from a Here4 (running Copter-4.6).
The result was at best the script would fail with this error:
Lua: /APM/scripts/copter-slung-payload.lua:185: bad argument #1 to 'alt' (out of range)
.. but even worse, in some situations the values were within range but crazy leading to unexpected copter movements.
This issue only occurred when the telemetry connection was overloaded. In this situations Mission Planner's mavlink connection would show the GLOBAL_POSITION_INT updates from the payload were slower than the configured 10hz rate which suggests to me that Mission Planner was rejecting the corrupt messages while the AP script was being fed the corrupted messages