arthurbenemann/droidplanner — pull request #341 by bob01 (2013-10-10 13:07:10+00:00)
Title: Connection: Use MAVLink heartbeat to monitor connection health

Goal: to provide greater feedback about data-link status, especially when using bridged connections.
e.g. [DroidPlaner] -> [BlueTooth] -> [3DR Tx/Rx] -> [APM]

Connection:
- 'Connection' announced only after first MAVLink heartbeat seen (MAVLink session established vs physical connection)

MAVLink heartbeat monitor:
- announce (TTS: "Data link lost, check connection.") if no heartbeat messages received for 5 seconds or more, AND every 15 seconds after until heartbeat messages resume.

- announce (TTS: "Data link restored") on resumption of heartbeats

** There is no auto-reconnect etc, it is left to the operator to decide what to do.