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.
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.
Authentication
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.
Method
GET : get flight log
HTTP Request
Query Parameters
Query Parameters are
Key | Description |
---|---|
Flight_ID | take id from get flights API response |
keys | AS_FLIGHT_LOG/AS_TELE_DATA/AS_KEEP_ALIVE |
URL Parameters
URL parameters are
Key | Description |
---|---|
pageSize : | 20 records on each page |
offset : | page size * page number |
HTTP Response
Response codes explanation:
Code | Details |
---|---|
200 | message: "ok" |
400 | request parameters missing |
500 | internal server error |
Code Snippet
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.
API Response
Example of API Response in JSON format.
API Response Parameter
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:
Parameter | Unit Of Measurement |
---|---|
alt | m (meter) |
bat | v (volt) |
dir | ° (degrees) |
lat | ° (degrees) |
lon | ° (degrees) |
mod | Return as numerical values, where the number represents
|
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) |
flight_id : Identifier for a specific flight associated with this log entry.
Last updated