Start Flight
"Seamlessly initiate flights with detailed telemetry data retrieval using Aeromegh's startFlight API."
This API provides programmatic access to detailed startFlight information with secure API key authentication. Retrieve parameters like flight ID, upstream topic, downstream topic, stream key, validity period, stream URI, and stream server base.
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
POST
HTTP Request
URL Parameters
URL Parameters are:
projectName
Name of the project associated with the flight.
planName
Name of the flight plan to execute.
droneId
Unique identifier for the drone initiating the flight.
teamId
Unique identifier for the team managing the flight.
firmwareVersion
(Optional) Version of the drone's firmware.
greenBuildNumber
(Optional) Build number for the green version.
areaCalculateMethod
(Optional) Specifies the method for area calculation, must be either "spraying" or "plot".
HTTP Response
Response Codes Explanation:
200
The request was successful.
"OK"
400
Request parameters missing.
"Request parameters missing"
500
Internal server error.
"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.
API Response
Example of API response in JSON format:
API Response Parameter
The following parameters are included in API response:
flightId
Unique identifier for the initiated flight.
upStreamTopic
Topic for upstream communication, facilitating data transmission from the drone to the server.
downStreamTopic
Topic for downstream communication, enabling data reception from the server to the drone.
streamKey
Key used for stream authentication.
validTill
Timestamp indicating the expiration time of the initiated flight.
streamUri
Uniform Resource Identifier (URI) for streaming, specifying the destination for streaming data.
streamServerBase
Base URL of the streaming server facilitating data transmission.
Last updated