|
Re: p1_sw_aux data type
"pwm01 goes to a motor that is meant to pivot two casters. I know that the victor its wired to works as well as the controller and cables and such. I know that in C++ the if statements should work but I haven't used C in a while and I forgot the differences in the two standards. Again, any help is greatly appreciated."
C++ is a superset of C thus everything that works in C will work in C++. Your code looks OK. You know p2_sw_aux1 is on the second joystick, correct? Print the value of p2_sw_aux1 to make sure it is changing.
HTH
|