ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.79k stars 2.41k forks source link

Add error checking around ping squawk value to avoid lockup #3241

Open rmackay9 opened 11 months ago

rmackay9 commented 11 months ago

We have a report that MP locksup if and ADSB ping's "squawk" value is set to be out of range (e.g. 1200 and 7777). We should add better error checking around what the user sets this to to avoid the lockup.

meee1 commented 11 months ago

root cause is message mavlink_uavionix_adsb_out_status_t is sending xpdr_mode_A_squawk_code = status.squawk; as 10110

which is out or range from 7777 to 1200