WouterJD / FortiusANT

FortiusANT enables a pre-smart Tacx trainer (usb- or ANT-connected) to communicate with TrainerRoad, Rouvy or Zwift through ANT or Bluetooth LE.
GNU General Public License v3.0
143 stars 77 forks source link

ANT-remote has more functions (long press) #454

Open WouterJD opened 5 months ago

WouterJD commented 5 months ago
          > 

apparently yours has four buttons:

                    if   ctrl_CommandNr == ctrl.MenuUp:     TacxTrainer.Buttons = usbTrainer.UpButton
                    elif ctrl_CommandNr == ctrl.MenuDown:   TacxTrainer.Buttons = usbTrainer.DownButton
                    elif ctrl_CommandNr == ctrl.MenuSelect: TacxTrainer.Buttons = usbTrainer.CancelButton
                    elif ctrl_CommandNr == ctrl.Start:      TacxTrainer.Buttons = usbTrainer.OKButton

If I would adopt this code, the function of the select button (middle one) would change...

The control has 3 Buttons, but you can long press everyone for a different function. I changed the code, so the middle button will change the front gear ring for short press, and reset the gearing with long press.

Originally posted by @krusty82 in https://github.com/WouterJD/FortiusANT/issues/381#issuecomment-1901028210