-
Hi @micbay, Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi sommo, If you want different lanes, than 1 & 2, active on bootup, then you can create a 'local.settings.h' file, then edit the following setting. Let me know if this isn't what you were talking about, |
Beta Was this translation helpful? Give feedback.
-
Hi micbay,Thank you for your fast reply, I have a carrera slotrace with only 2 lines so my question is how to compile the sketch with only 2 line active cause I don’t have the 3rd and 4th line (physically). I’m thinking that doing so because maybe and probabily the arduino will be more “light” (talking about load and cpu/memory use because it has to check only 2 line for time/lap. It’s a suggestion anyway.I have also some other question (about adding a stoplight, with red and green led and if your sketch storage fastest lap/record also after a power off or maybe, that’s the point, if its possible to add a sd module to storage this information to get them on future, but le me know if it’s better to open a new thread and treat those argument separately).Thank you againIl giorno 2 mar 2023, alle ore 14:45, micbay ***@***.***> ha scritto:
Hi sommo,
I'm not sure if you asking if it can be used with only 2 lanes/racers, or used with only 1 racer, using only lane 2. The answer is that both are possible. Which lanes/lines/racers that are active for any given race can be changed and set from the 'Settings Menu' screen. From this menu screen pressing a number key 1-4 will toggle the active status of that lane #. The 'skull' icon indicates the lanes is disabled. There are no changes to code required to operate in this manner. If you only want to use only lane 2 then you can simply disable lanes, 1, 3, and 4.
If you want different lanes, than 1 & 2, active on bootup, then you can create a 'local.settings.h' file, then edit the following setting.
original default, lanes 1-2 active on bootup: #define DEFAULT_LANES_ENABLED { Off, StandBy, StandBy, Off, Off }
example with only lane 2 active on bootup: #define DEFAULT_LANES_ENABLED { Off, Off, StandBy, Off, Off }
Note that the first 'Off' term in the array is not used, lanes 1-4 are set by array elements 1-4.
See the end of the readme documentation for more explanation on creating and editing default settings using a 'local.settings.h' file.
Let me know if this isn't what you were talking about,
hope you enjoy the controller,
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @micbay, |
Beta Was this translation helpful? Give feedback.
-
With version 1.1.0 (which is equivalent to pulling the current master branch at the time of this update), the code base now supports setting the number of lanes that will be used in the system. The |
Beta Was this translation helpful? Give feedback.
With version 1.1.0 (which is equivalent to pulling the current master branch at the time of this update), the code base now supports setting the number of lanes that will be used in the system.
The
laneCount
variable is now set using a newLANE_COUNT
macro id in thedefaultSettings.h
. This is also now set to 2 by default, but is changeable to any value 1-4 by setting an alternateLANE_COUNT
in oneslocalSettings.h
. Subsequently, the newDEFAULT_MAX_STORED_LAPS
is now 20 out of the box. IfLANE_COUNT
is increased,DEFAULT_MAX_STORED_LAPS
should be reduced accordingly.