Classes
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
- Source:
Properties:
Name Type Description dataObject Information about the channel inputs and outputs of the picpilot
-
TelemetryData:aircraft_gains
-
When a new data packet has been received on the data relay connection
- Source:
Properties:
Name Type Description dataObject Current aircraft gains information
-
TelemetryData:aircraft_orientation
-
When a new data packet has been received on the data relay connection
- Source:
Properties:
Name Type Description dataObject Information on the orientation of the aircraft
-
TelemetryData:aircraft_position
-
When a new data packet has been received on the data relay connection
- Source:
Properties:
Name Type Description dataObject Information on the position of the aircraft
-
TelemetryData:aircraft_status
-
When a new data packet has been received on the data relay connection
- Source:
Properties:
Name Type Description dataObject Current aircraft status information