Get Flight Logs
API is a service that allows users to retrieve historical flight logs recorded by a drone during its missions. These logs typically contain detailed information about the drone's flight.
Last updated
API is a service that allows users to retrieve historical flight logs recorded by a drone during its missions. These logs typically contain detailed information about the drone's flight.
Last updated
This API provides programmatic access to detailed drone operation information, including telemetry data and flight statuses. Integrate with this API to efficiently retrieve logs for analysis, monitoring, and reporting.
To use the API, insert your API key in the Authorization header like this:
Replace <YOUR_API_KEY>
with your AeroGCS API key. Without it, you'll get a 401 Unauthorized error.
GET : get flight log
Query Parameters are
Key | Description |
---|---|
URL parameters are
Response codes explanation:
Examples of how you can call this API using curl, Node.js, and Python
Note: Replace <API_KEY>
with the actual API_KEY provided by Aeromegh.
Usage Note : To specify the type of data you wish to retrieve from the API, set the key accordingly:
For accessing flight logs, use the key AS_FLIGHT_LOG.
To retrieve telemetry data, set the key as AS_TELE_DATA.
For obtaining keep-alive signals, utilize the key AS_KEEP_ALIVE.
Remember, you can only set one key at a time to specify the type of data you want to receive. Choose between AS_FLIGHT_LOG, AS_TELE_DATA, or AS_KEEP_ALIVE based on your requirements.
Example of API Response in JSON format.
The following parameters are included in the API response for Flight logs
id : Unique identifier for the log
key : Key used to identify if the log entry contains telemetry data or flight data.
droneid : Unique identifier for the drone associated with this log entry
timestamp : Timestamp indicating the time when the telemetry data was recorded.
aerostackid : Identifier associated with an Aerostack system or component.
data : The actual drone data or information captured by the log entry.
Parameters and Units of Measurement
The table below outlines the parameters included in the data along with their respective units of measurement:
flight_id : Identifier for a specific flight associated with this log entry.
Key | Description |
---|---|
Code | Details |
---|---|
Parameter | Unit Of Measurement |
---|---|
Flight_ID
take id from get flights API response
keys
AS_FLIGHT_LOG/AS_TELE_DATA/AS_KEEP_ALIVE
pageSize :
20 records on each page
offset :
page size * page number
200
message: "ok"
400
request parameters missing
500
internal server error
alt
m (meter)
bat
v (volt)
dir
° (degrees)
lat
° (degrees)
lon
° (degrees)
mod
Return as numerical values, where the number represents
Acro
Airmode
Alt Hold
Auto
AutoTune
Brake
Circle
Drift
Flip
FlowHold
Follow
Guided
Heli_Autorotate
Land
Loiter
PosHold
RTL
SmartRTL
Sport
Stabilize
SysID
Throw
Turtle
ZigZag
pit
° (degrees)
rol
° (degrees)
sat
satellite count in number
vel
m/s (meter per second)
yaw
° (degrees)
timestamp
ms (milliseconds)
liquidConsumed
ml (milliliter)
remainingLiquidPercentage
% ( percentage)
sprayedArea
m² ( square meter)
sprayedDistance
m ( meter)
sprayPumpRate
% ( percentage)
flowRate
L/min ( liter per minute)
liveObstacleDistance
cm (centimeter)