Check the timestamp of the system and location messages. Only update the last_*_ms value if the newly received packet has a different timestamp.
This should cover situations in which the flight controller keeps sending packets with the same information. Because it crashed? The current arm_status_check function won't detect such cases.
Check the timestamp of the system and location messages. Only update the last_*_ms value if the newly received packet has a different timestamp.
This should cover situations in which the flight controller keeps sending packets with the same information. Because it crashed? The current arm_status_check function won't detect such cases.