|
Re: Shooter Programming Help
The CIM motor and joystick both have a -1 to 1 range. You may need to flip the direction by multiplying by -1, or scale it by multiplying by a number less than 1.
For the button based motor control, determine exactly how you'd like the buttons and motor to behave. I suspect you'll find other questions with attached images that do something very similar.
In Begin, you typically Open the motor and provide it with the PWM channel number. You then store the value giving it a useful name. That allows you to access it in other parts of the program using the same name.
Greg McKaskle
|