Quote:
Originally Posted by Greg McKaskle
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
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.