dart_opendroneid library
Support for doing something awesome.
More dartdocs go here.
Classes
- AuthData
- AuthMessage
- The AuthMessage can have two different formats:
- BasicIDMessage
- CAARegistrationID
- DescriptionType
- DescriptionTypeEmergency
- DescriptionTypeExtendedStatus
- DescriptionTypePrivate
- DescriptionTypeText
- IDNone
- Location
- LocationMessage
- MessagePack
- ODIDMessage
- OperatorIDMessage
- OperatorIDType
- OperatorIDTypeOperatorID
- OperatorIDTypePrivate
- SelfIDMessage
- SerialNumber
- SpecificSessionID
- Specific Session ID according to the registered Session ID Type
- SystemMessage
- UAClassification
- UAClassificationEurope
- UAClassificationUndeclared
- UASID
- UTMAssignedID
- Representation of a UTM Assigned ID if operating within a UTM system (128-bit UUID) binary encoded, Network Byte Order.
Enums
Constants
- areaRadiusMultiplier → const int
- latLonMultiplier → const double
- maxAuthData → const int
- maxAuthDataPages → const int
- maxAuthPageNonZeroSize → const int
- maxAuthPageZeroSize → const int
- maxIDByteSize → const int
- maxMessagePackSize → const int
- maxMessagesInPack → const int
- maxMessageSize → const int
- maxStringByteSize → const int
- odidEpochOffset → const int
- verticalSpeedMultiplier → const double
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 parameterT
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