cwhitney / SilverSprint

SilverSprint is an opensource front end for bike racing.
MIT License
23 stars 12 forks source link

Add the ability to handicap riders in #24

Open cwhitney opened 5 years ago

petedavis commented 5 years ago

Hey mate, I have made a start on this: https://github.com/petedavis/SilverSprint/tree/HandicapRacing

Just hit an issue as the race distance is different for each rider in a handicap, and the number of race ticks is sent to the arduino. So I have to update the arduino code to take 4 race distance values. I think I will add a new "l2" command that sends 4 race distance ticks, and modify the original l command to fill an array of 4 race distances with the same value. That should maintain backwards compatibility.

Trying to make it all simple and consistent where a scratch race is just where everyone has a handicap distance of 0m and therefore no breaking changes between scratch and handicap.

I cannot believe you guys dont race handicaps! So cool watching a massive sprinter trying to catch a junior and not knowing who's going to win.

cwhitney commented 5 years ago

Cool thanks for that. I think the handicapping could all be handled on the front end, where they just get an extra X meters added to the start, and it wouldn't need to touch any of the hardware. I'm not exactly sure where to put it in the options though. Maybe on the roster screen? The app overall could benefit from some UX help as we start to expand into more options, but currently I'm a team of 1, so it's a little slow going. Thanks for the head start though!