Module: AircraftStatus

Keeps track of the current state of the autopilot, and informs the StatusManger about any important changes

Author:
  • Serge Babayan
Source:
See:

Requires

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
data Object
Properties
Name Type Description
startup_error_codes number | null
gps_status number | null
wireless_connection number | null
autopilot_active number | null
path_following number | null
Source: