Modules

Classes

Connection
PersistentSettings

Events


Connection:close

Emitted when the socket has been closed. Passes true if it closed due to an error

Type: bool
Source:

Connection:connect

Emitted when the socket has successfully connected

Type: null
Source:

Connection:data

Emitted when the socket has received a packet of data

Type: Buffer
Source:

Connection:socket_error

Emitted when an error has occurred on the socket. Does not throw an error if there are no listeners

Type: Object
Source:

Connection:timeout

Emitted when the socket has timed out (receiving no data but still connected)

Type: null
Source:

Connection:write

Emitted if data was successfully sent through the socket. Passes back the data sent

Type: Object
Source:

TelemetryData:aircraft_channels

When a new data packet has been received on the data relay connection

Properties:
Name Type Description
data Object

Information about the channel inputs and outputs of the picpilot

Source:

TelemetryData:aircraft_gains

When a new data packet has been received on the data relay connection

Properties:
Name Type Description
data Object

Current aircraft gains information

Source:

TelemetryData:aircraft_orientation

When a new data packet has been received on the data relay connection

Properties:
Name Type Description
data Object

Information on the orientation of the aircraft

Source:

TelemetryData:aircraft_position

When a new data packet has been received on the data relay connection

Properties:
Name Type Description
data Object

Information on the position of the aircraft

Source:

TelemetryData:aircraft_status

When a new data packet has been received on the data relay connection

Properties:
Name Type Description
data Object

Current aircraft status information

Source: