Flask-based web companion app for
servo-ctrl-zephyr
- CSS 46.9%
- JavaScript 27.7%
- Python 17.5%
- HTML 7.9%
| doc | ||
| static | ||
| templates | ||
| app.py | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
Zephyr Servo Controller Frontend
The Servo Controller is a Flask-based web application that serves as a companion app for the servo-ctrl-zephyr application.
It allows users to control multiple servos through a serial interface and provides functionalities for configuring serial settings, adjusting servo positions, and managing trajectory points for automated movements.
Usage
- Serial Configuration: Enter the desired UART port and baud rate, then click "Update Serial Config" to apply the settings.
- Servo Controls: Use the sliders to set the desired positions for each servo. Click "Reset Sliders" to return to default values.
- Trajectory Management:
- Click "Save Point" to record the current servo positions.
- Use "Clear Trajectory" to remove all saved points.
- Replay the trajectory with "Start Replay" and stop it with "Stop Replay".
- Adjust the time delay for replay and enable looping if desired.
- Load or save trajectory data using the respective buttons.
Preview
Quickstart
- Clone the repository:
https://github.com/pkoscik/servo-ctrl-zephyr-gui-flask.git
- Install Python requirements
pythom -m venv .venv
. venv/bin/activate
pip install -r requirements.txt
- Run
flashapp
python app.py
