... | ... | @@ -17,3 +17,118 @@ Our GCS uses the DJI SDK version 4.16 which is compatible with DJI drone models: |
|
|
Release notes and compatibilities are here: https://developer.dji.com/document/122b5969-d64d-4752-8452-400c41240aa5
|
|
|
|
|
|
|
|
|
|
|
|
# End Point connection
|
|
|
To send Target Reports to this server you must connect via WS to the following endpoint: `wss://dev-dsdp-acquisition.airus-suite.com/ws/dsdp/$station-id/$token`.
|
|
|
|
|
|
* Only one connection per station is accepted at the same time
|
|
|
* The connection will close if the client sends target report for the same drone too fast
|
|
|
* The connection will close if the Target Report is malformed X times
|
|
|
* If the TargetReport is malformed. The ws will send a message notifying what's wrong
|
|
|
|
|
|
#### Custom close codes
|
|
|
|
|
|
* **3001 - DUPLICATED_STATION**: The websocket will send a close with the code 3001 if the client's stations is already in use by other connection
|
|
|
* **3002 - NO_VIGILANT_ID**: The ws will send a close with the code 3002 if no vigilant could not be retrieved from the DSDP API.
|
|
|
|
|
|
An example of target report would be:
|
|
|
|
|
|
```
|
|
|
{
|
|
|
"surveillance_station":{
|
|
|
"period":1,
|
|
|
"identification":{
|
|
|
"uuid":"GCS_DEFAULT"
|
|
|
},
|
|
|
"type":"TELEMETRY"
|
|
|
},
|
|
|
"data_items":{
|
|
|
"identification":{
|
|
|
"reported_identification_data":{
|
|
|
"reported_uuids":{
|
|
|
"drone_serial":"M600SCR"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"supplemental":{
|
|
|
"aircraft":{
|
|
|
"aircraft_type":{
|
|
|
"type":"MULTIROTOR"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"alarm":[
|
|
|
"LoL",
|
|
|
"LoE"
|
|
|
],
|
|
|
"take_off_location":{
|
|
|
"latitude":43.7053348814,
|
|
|
"longitude":-7.4636306758
|
|
|
},
|
|
|
"kinematic":{
|
|
|
"position":{
|
|
|
"geodetic":{
|
|
|
"measured":true,
|
|
|
"toa":1675954177,
|
|
|
"position":{
|
|
|
"latitude":43.72263488140057,
|
|
|
"longitude":-7.4636306758
|
|
|
},
|
|
|
"relayed":true
|
|
|
},
|
|
|
"altitude_atp":10,
|
|
|
"enu":{
|
|
|
"measured":false,
|
|
|
"toa":0,
|
|
|
"position":{
|
|
|
"east":0,
|
|
|
"north":0,
|
|
|
"up":0
|
|
|
},
|
|
|
"error":{
|
|
|
"horizontal":{
|
|
|
"mean":{
|
|
|
"east":0,
|
|
|
"north":0
|
|
|
},
|
|
|
"covariance":{
|
|
|
"e_n":0,
|
|
|
"e_e":1,
|
|
|
"n_n":1
|
|
|
},
|
|
|
"outliers":{
|
|
|
"probability":0,
|
|
|
"scale":10
|
|
|
}
|
|
|
},
|
|
|
"vertical":{
|
|
|
"mean":{
|
|
|
"up":0
|
|
|
},
|
|
|
"covariance":{
|
|
|
"u_u":1
|
|
|
},
|
|
|
"outliers":{
|
|
|
"probability":0,
|
|
|
"scale":10
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"relayed":false
|
|
|
}
|
|
|
},
|
|
|
"attitude":{
|
|
|
"yaw":0
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"association":{
|
|
|
|
|
|
},
|
|
|
"post_to_simulator":false,
|
|
|
"timestamp":1675954177
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
|