sudo apt install python3.10-venv
python3 -m venv ./flask-env
source flask-env/bin/activate
pip install -r requirements.txt
To deactivate type
deactivate
python3 flask-ard-car.py
pip freeze > requirements.txt
- Using ajax and javascript to send data on every button click or keystroke press.
- Keystrokes(wasd and arrows, space or escape for stop) P.S speed up and down not implemnted yet
Use socket.io and get bi-direcation connection to the server. This way sending data will be very low latency.