View Single Post
  #3   Spotlight this post!  
Unread 30-01-2013, 12:31
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

Quote:
Originally Posted by Greg McKaskle View Post
A case structure enforces you to produce data for all cases. If it didn't, and someone tried to use the data, it would be an uninitialized variable. You can move the motor update block into the structure itself and only call it in one frame, or you can output the same value that you sent the last iteration.
Do you basically mean "put the whole thing, joystick things and all inside of the if statement?
Also do you mean that just wiring my Boolean (in this case something that should be connected to breaker switches) up to the side of the diagram makes it determine what the if returns as?
Quote:
Originally Posted by Greg McKaskle View Post
For changing a Boolean into a number, the typical approach is to use a case structure or a select block to choose between two numbers.

Greg McKaskle
I'll try that, same section as ifs?

Thanks.
Reply With Quote