In development. Waterloop's Hyperloop Pod is controlled by distributed flight computer hosted on a Raspberry Pi. This is the host application's command control state machine, which parses commands between the web dashboard and the motor controller.
Before cloning the repo, ensure you:
- Install gRPC for Python
pip install grpcio
- Install CAN
pip install python-can
Open a terminal and run:
python grpc_testserver.py
Open a second terminal and run:
python CommandControlSM.py
You should receive a test message from the server with:
Message: Battery voltage data
Battery Voltage: 48.5
Battery Current: 0.0
Speed: 0