Open nathan815 opened 4 years ago
I'm also thinking maybe this web app can have two screens: one for the facilitator/volunteer who is signing up pilots, stopping/stopping flight, and determining whether a flight is valid, and another screen to show live video footage from the drone (if we reach this stretch goal).
The Mac Mini has HDMI and mini displayport, so we could hook up two monitors to it.
We will have another python entry point script,
web.py
, that will start a flask server and open the browser to the flask server url.Web App Features
Some other stretch goals for the web app:
Communication between web app and drone code
The web app front end will communicate with the flask server through websockets. See #6.
Drone Code
All of the drone code (i.e. code calling tellopy APIs) can be running in another thread. The flask server thread will communicate with the drone thread via a Queue.
When a "start flight" command is sent, we will enable the drone for flying and begin recording data. Similarly when flight stop/cancel is sent, we will make the drone land and stop recording the drone data.