View Single Post
  #7   Spotlight this post!  
Unread 16-02-2013, 19:05
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: How to program a button this way?

Quote:
Originally Posted by Greg McKaskle View Post
Focussing on the original problem, I'm curious what solution you would have done in a text language? I ask this because this sort of thing comes up often as folks are just learning to program or are learning a new language, and I'm wanting to make sure that I understand the things that kept you from finding the solution.

Greg McKaskle
In a text language, I'd just make a boolean PneumaticsRetracted or something like that. Then when I press the right button, if the bool is true, do one thing, if it's false, do the other. And in both, change the bool's value to the opposite of course
__________________
Team 3753 BulahBots
Reply With Quote