Quote:
Originally Posted by billbo911
Solid RED on the Victor means it is receiving a full reverse command.
On your block diagram for the teleop, if no buttons are pressed, the motor will receive a 50% reverse command, other than that, I can not say what is happening from the screen shots.
|
Actually if no buttons are pressed you will have a race condition and it is impossible to determine if the output will be 0 or 50% reverse.
I recommend you place one case structure inside the other and explicitly define what you want to happen in all 4 possible conditions (Only #1 pressed, Only #5 pressed, Both pressed, neither pressed). If you need help understanding how to nest the case structure or how it works with one inside the other feel free to post here and I will explain further.
EDIT: Also without seeing the "true" Case for the case structures we can't tell what will happen when you actually do push the buttons. If you want to continue down this path and not nest them as I suggest above we'll need to see the "True" cases and we'll also need a description of what you want the code to do (IE. Power the motor at 50% reverse when button #1 is pressed and power at 50% forward when button #5 is pressed)