DroneScout Receiver Manual - version 1.0 May 2022 - © BlueMark Innovations BV 2022
25/28
print("BaroAccuracy......", BaroAccuracy)
print("SpeedAccuracy......", SpeedAccuracy)
print("TSAccuracy......", TSAccuracy)
print("TimeStamp......", int(TimeStamp/60), ":" , int(TimeStamp %
60),sep="")
print("")
#SelfIDValid message
if SelfIDValid == 1:
print("Self ID data")
SelfID_start_byte = 776
[DescType] = struct.unpack('i',
UASdata[SelfID_start_byte:SelfID_star 4])
Desc = UASdata[SelfID_star 4:SelfID_star 4 + 23]
print("Desc Type......", DescType)
print("Desc......", Desc.decode('ascii'))
print("")
#SystemValid message
if SystemValid == 1:
print("System data")
Location_start_byte = 808
[OperatorLocationType] = struct.unpack('i',
UASdata[Location_start_byte:Location_star 4])
[ClassificationType] = struct.unpack('i',
UASdata[Location_star 4:Location_star 4+ 4])
print("Operator Location Type......", OperatorLocationType)
print("Classification Type......", ClassificationType)
[OperatorLatitude] = struct.unpack('d', UASdata[Location_start_byte
+ 8:Location_star 8 + 8])
[OperatorLongitude] = struct.unpack('d', UASdata[Location_start_byte
+ 16:Location_star 16 + 8])
print("Operator Latitude......", OperatorLatitude)
print("Operator Longitude......", OperatorLongitude)
[AreaCount] = struct.unpack('h', UASdata[Location_star
24:Location_star 24 + 2])
[AreaRadius] = struct.unpack('h', UASdata[Location_star
26:Location_star 26 + 2])
[AreaCeiling] = struct.unpack('f', UASdata[Location_star
28:Location_star 28 + 4])
[AreaFloor] = struct.unpack('f', UASdata[Location_star
32:Location_star 32 + 4])
[CategoryEU] = struct.unpack('i', UASdata[Location_star
36:Location_star 36 + 4])
[ClassEU] = struct.unpack('i', UASdata[Location_star
40:Location_star 40 + 4])
[OperatorAltitudeGeo] = struct.unpack('f',
UASdata[Location_star 44:Location_star 44 + 4])
print("Area Count......", AreaCount)
print("Area Radius......", AreaRadius)
print("Area Ceiling......", AreaCeiling)
print("Area Floor......", AreaFloor)
print("Category EU......", CategoryEU)
print("Class EU......", ClassEU)
print("Operator Altitude Geo......", OperatorAltitudeGeo)
print("")
#OperatorIDValid message
if OperatorIDValid == 1:
OperatorID_start_byte = 864
print("Operator ID data")