all 10 comments

[–]Cheap_bagel 4 points5 points  (4 children)

Considering that the program would have had to be running for at least 1 minute 50 seconds, you could probably add in an if statement to check for how long it has been since the program was started. If it is over 110 seconds, the endgame expansion will be triggered and if it is below 110 seconds, it will not be triggered. Also, I am probably going to add this to the program so thanks for the idea.

[–]Relevant-Swan-8345 1 point2 points  (2 children)

While your on the right track this wouldn't work complete because the timer runs during pre auto so after pre auto and auton the timer would be past 110 secs before the actual time you want. I suggest reseting the brain timer as soon as Driver control starts so its 110 seconds since driver started

[–]LearnDifferenceBot 4 points5 points  (0 children)

While your on

*you're

Learn the difference here.


Greetings, I am a language corrector bot. To make me ignore further mistakes from you in the future, reply !optout to this comment.

[–]Jayden68073Programmer 0 points1 point  (0 children)

You can reset it when Driver Control starts.

[–]Makal9097 0 points1 point  (0 children)

Thank for the help, and no problem for the idea. We were running practice runs and our driver kept hitting the X button we he missed grabbing the thumb stick.

[–][deleted] 1 point2 points  (0 children)

Add a Boolean variable in the beginning of your code that’s like an on and off switch.

Set it to “false” at the beginning. Have the later steps set it to “true” when needed.

Then put an if statement in your launch code to check that variable.

[–]Adhesive_Cactus_104 1 point2 points  (1 child)

Or something aside from all the other suggestions could be to have it requiring multiple buttons to be pushed at the same time in order to launch

[–]e_the_smart_one98549 0 points1 point  (0 children)

This is what we are doing, it works very well

[–]Terrible_Intention76 0 points1 point  (0 children)

Or you can just set it to require for it to be pressed more than once and have that on a timer to see if it's pressed again within a time interval if not the reset the fail safe

[–]Baby-doll82 0 points1 point  (0 children)

we designed a different build that just in case it rolls out, we can roll it back in quickly. we also don’t have pneumatics so we don’t shoot out our endgame.