Keeps track of the current state of the autopilot, and informs the StatusManger about any important changes
- Copyright:
-
- Waterloo Aerial Robotics Group 2016
- Source:
- See:
Requires
- module:models/TelemetryData
- module:StatusManager
- module:util/Logger
- module:util/Validator
- module:util/Bitmask
- module:models/Commands
- module:config/picpilot-config
Members
-
<inner> autopilot_status :Object
-
Information on the current autopilot status
Type:
- Object
- Source:
-
<inner> following_path :boolean
-
Whether the aircraft is currently following a path
Type:
- boolean
- Source:
-
<private, inner> heartBeatInterval :number
-
For keeping track and clearing the interval function when sending heartbeats to the picpilot
Type:
- number
- Source:
-
<inner> manualMode :boolean
-
Whether the autopilot is on or off
Type:
- boolean
- Source:
-
<inner> startup_errors :Object
-
Startup errors that occurred on the autopilot
Type:
- Object
- Source:
-
<inner> uhf :Object
-
Current UHF connection status
Type:
- Object
- Source:
-
<inner> xbee :Object
-
Current xbee connection status
Type:
- Object
- Source:
Methods
-
<inner> startHeartbeat()
-
Starts sending heartbeats at the rate as specified in the picpilot config. Will clear and restart it if called multiple times
- Source:
-
<private, inner> telemetryCallback(data)
-
Parameters:
Name Type Description dataObject Properties
Name Type Description startup_error_codesnumber | null gps_statusnumber | null wireless_connectionnumber | null autopilot_activenumber | null path_followingnumber | null - Source: