Replies: 7 comments 8 replies
-
I'm not 100% sure I fully understand your request, but this is my first stab at it. I do not have anything with me to test so this is just my best guess as to what you might be able to do, relatively quickly to try and get what I think you are asking. Immediate Start - It seems you are asking to skip the staging screen and want to go straight into the pre-start countdown and race start when A, B, or C(drag) race is selected from the race type select menu. In the main code (file RaceTimerAndController.ino), the So currently the block of code handling a start race key press in the
Try changing it to:
Just doing that, might get funky for drag racing because a staging step is how heats are reset and could make drag starts tricky, but you can update the change to only skip the staging step for circuit racing by doing this instead.
Starting Lap Timing Immediately on race start - essentially that sounds like you want the circuit style race start to be the same as a single sensor, drag race start. I think you can achieve this by editing the new race start setup code in the
Try changing to:
Note that, of course, once you start editing the code, the line #'s referenced here may not line up exactly anymore, but you should be able to recognize the referenced part nearby, if it has shifted. Again, I'm suggesting these changes completely blind to the outcome as I don't have hardware to test with right now, but give them a shot and see if they get the results you are interested in. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your interest. I think I did not explain myself fully about starting a fast race. What I mean is, plug it in. Do nothing else. Just press the start button and the standard race will start as in the default settings.its possible ? |
Beta Was this translation helpful? Give feedback.
-
If you want it be ready to run on bootup with no menu inputs you could change the startup to boot straight into the Pre-Staging menu for whatever racetype you want to use, which will be inherently in a state where then pressing the Starting with the original code, not the modified state skipping code from before, in the current portion of the
to something like:
The issue will be what do you do when the race is over, you still need to interact with the menu/display to view results and reset the race or you'd also need to modify the code to change how the The controller works by switching between states (Menu, Staging, PreStart, Race, Paused, Fault and Finish). You can distinguish these states by the Switch statement cases with these labels. On bootup the I've commented almost every line of code, so people can work out what does what even if you don't fully understand the actual code, you can probably get the gist and move parts that you want to run in different orders around as we've kind of done above. Regarding the timing discrepancy you are seeing, I can't really guess at the issue without more detail and perhaps an image or video so I can see what you are talking about. Is it a format you are maybe misreading or are you actually not seeing any time index until after at least 1min? The format is mm.ss.0 for running lap time, and mm.ss.000 for captured lap times. It does not display empty pre-fixes so if you see only 1 decimal that should be seconds. |
Beta Was this translation helpful? Give feedback.
-
I added this section under the main menu regarding quick start. case '#': Now I can start the race by pressing the button even if it is not visible on the screen. But I think yours is a better solution. Sorry for my mistake, maybe I misunderstood at that moment. Lap times are wrong. But not minutes. I uploaded a short video about it. https://www.youtube.com/watch?v=CTiduL7_SE4 edit: |
Beta Was this translation helpful? Give feedback.
-
I'm pretty new here and to the coding. Sorry about that and thank you for your advice. Actually it was just the first round for each lane. But now all the rounds are showing up wrong. I'll flash it again and try again. |
Beta Was this translation helpful? Give feedback.
-
Yeah, all the code i gave you in my first reply is for using menu keys still to start a race, but skipping the I'm not totally clear on where your code is at. Let's try this, start from the original code and implement just this part that updates lines 1904 & 1905 in the
If that is working as expected then let's try to implement the first lap timing on race start by adding in this updated replacement, to the
and let me know how that works. |
Beta Was this translation helpful? Give feedback.
-
For drag racing the time isn't calculated with the same variables as circuit racing because it doesn't need to keep track of multiple laps so I think the problem is that in this case, we are bypassing the Try this version where I've added a line
|
Beta Was this translation helpful? Give feedback.
-
Thank you for this nice timer. Please excuse me for what I am going to ask. Unfortunately, I do not have any experience with coding. Can you help me with a few small changes? Is it possible to start a quick race with the current settings when the start button is pressed on the main screen? And secondly, can we record the first trigger after the start in the standard race as a lap time?
Beta Was this translation helpful? Give feedback.
All reactions