MiniTFT controller for running FortiusANT on a Raspberry Pi
Controller for FortiusANT from https://github.com/WouterJD/FortiusANT. Uses headless Raspberry Pi with Adafruit miniPiTFT 240x240 display (https://www.adafruit.com/product/4484). Tested on RPi3B+ and Tacx Fortius running Bluetooth connection with CTP (Cycle Traning Program) (Zwift in this case).
Assumptions/Dependencies/Requirements:
- This controller is filed in Home directory along with jpg image for opening screen
- When RPi starts it automatically executes Controller (tested using ~/.bashrc)
- Controller starts FortiusANT using .sh script
- FortiusANT must start with -d1 (or greater odd number) argument to produce logfile which is read by Controller
- Logfile(s) is/are deleted at close to prevent uncontrolled growth in number of old files. Wastebasket is emptied of all but most recent files (number is selectable)
- Tacx Fortius trainer startup starts calibration which is tracked on display. Need to modify to handle other trainers
- FortiusANT.py runs from /home/pi/FortiusANT/pythoncode/ - this is also where log file is stored