|
Re: Breaker Switches and Buttons to Motors
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.
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
|