|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||
|
|||
|
Re: Limit switches in autonomous
We normally test
if (topLimit.Get()) { do something } or if (!topLimit.get()) { do something else } The code that works is testing == true while the code that does not work is testing == false. I can't see anything wrong with the code; I just have the observation that your test is different between the code that is working and the code that is not working. You might want to rewrite the auto code to use a == true test. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|