AtLAS-WVU / AtLAS-server

An open-source server application for dispatching, receiving, and tracking AtLAS (Autonomous Low Altitude Service) delivery drones.
https://deliverwithatlas.com/
GNU General Public License v3.0
1 stars 2 forks source link

UpdateDroneStatus #21

Closed owiegand closed 6 years ago

owiegand commented 6 years ago

Updates the drones current status to the server. inserts the data into the drone_status table.

Also look to make sure that this is only updating data for the currently delivery.

POST request

drone_id
drone_private_key
current_battery_life (optional field until we can confirm this is possible)
current_stage_of_delivery (cruising, takeoff, landing, idle)
latitude (float)
longitude (double)
altitude (double)
speed (double)

returns:

success: true/false
debug
owiegand commented 6 years ago

We are not going to handle the insertion of the a drone into the drone_status table. This would be done when trying to setup a new drone on the service.

owiegand commented 6 years ago

This is finished in e1a356bfde3184ee04259b1bd1b54ec86389377e

owiegand commented 6 years ago

Currently the drone_id and private_key for testing are as follows:

drone_id = 55560935
private_key = 1234567890
owiegand commented 6 years ago

@kwloeffelbein This is the code that will be called from your code in python.