![]() |
Toggle or Digital Switches
Hi, we had a question regarding the autonomous period of competition. Our team has always used toggle switches and true / false conditionals, though we were curious if there is anyway to make a digital toggle switch on the smart dashboard that we could press shortly before the beginning of autonomous. Also, we were curious if this was even legal. Thanks for the help!
|
Re: Toggle or Digital Switches
Perfectly legal. This is perfectly functional, albeit 2 years old.
|
Re: Toggle or Digital Switches
When looking through some stuff, I found a Reddit post with a way that seems effective. When I tried it on the code below I get an odd error. When we select a mode, it works fine. When we disable, select another mode, and re-enable the program, it runs both cases at the same time. Any ideas anyone?
Code:
package org.usfirst.frc.team2130.robot; |
Re: Toggle or Digital Switches
Quote:
You should probably set both talons to zero in autonomousInit() so you have a known starting state. |
| All times are GMT -5. The time now is 21:13. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi