Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super timer II support. Fixes #206 #365

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

natebazar
Copy link

@natebazar natebazar commented Jan 29, 2025

This is an implementation of the SuperTimer II interface to work with DerbyNet. We ran at least 1 race (26 heats) with it and I fixed the couple issues that cropped up during the race.

I had to add a couple of odd quirks to handle SuperTimer since it only reports times it sees (DNFs are un-reported), and it also reports them on multiple lines. For this I added a partial lane result handling that joins two events. for the DNFs, I added a 'NO_MORE_RESULTS' event that will go through and post all un-marked lanes as a DNF time.

I also added support for a timer to control the post race/heat start timeout since this timer can control the timeout. I could not figure out how to integrate sending the command back to the timer to get it to update the track timeout with the webUI, but most of the logic is there in the HeatPreparation.

Fixes #206

@natebazar natebazar changed the title Super timer II support. Fixes: https://github.com/jeffpiazza/derbynet/issues/206 Super timer II support. Fixes #206 Jan 29, 2025
Also fixed an issue with the Java implementation (Found an off by one)
Cleaned up some TODO comments about the timeout since it was fixed already.
@parkerwallace
Copy link

I've tested the new derby-timer.jar and can confirm that the Super Timer II was properly auto-detected and is registering the times. We just had our Pinewood Derby last weekend and the software our Scout Pack was using (RaceManager) looked challenging. Looking forward to using DerbyNet next year!

@natebazar
Copy link
Author

Glad to hear your testing went well! I definitely found Race Manager challenging as well...
Let me know if you end up doing more testing and find any issues. If this PR gets merged, feel free to tag me on the issue if related to SuperTimer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for SuperTimer II?
2 participants