dart_opendroneid library

Support for doing something awesome.

More dartdocs go here.

Functions

determineODIDMessageType(Uint8List messageData) Type?
Returns ODID message type based on received message header. Returns null in case the message or its type is invalid
encodeBasicIDMessage(UAType uaType, String serialNumber) List<int>
encodeLocationMessage({required Location location, required double altitudePressure, required double altitudeGeodetic, required double height, required double verticalSpeed, required double horizontalSpeed, required int direction, required Duration timestamp}) List<int>
encodeOperatorIdMessage(String operatorId) List<int>
encodeSelfIDMessage(String description) List<int>
encodeSystemMessage({required Location operatorLocation, required double operatorAltitude, required int areaCount, required int areaRadius, required double areaCeiling, required double areaFloor}) List<int>
parseODIDMessage<T extends ODIDMessage>(Uint8List messageData) → T?
Parses ODID message from array of raw bytes messageData. Optional parameter T can constrain the expected message type. In case the specified type does not match parsed message type, null is returned.
parseODIDMessageStream(Stream<Uint8List> messageStream) Stream<ODIDMessage?>
Parses stream of binary chunks representing messages into ODIDMessage stream (using parseODIDMessage).

Typedefs

BaroAltitudeAccuracy = VerticalAccuracy
Same as VerticalAccuracy, redefined for naming clarity