|
Re: How to set up a 3rd (non drive) motor in C++ Windriver
I suggest looking into the Jaguar, Victor, and Relay classes. As for the get-axis stuff, I'm pretty sure the Joystick class has a GetAxis method that returns x, y, or z axis(though many don't have a z-axis), though the translation between joystick and pwm output is up to you.
__________________
Student:
<04: FRC0213> <05-08: FRC1373>
Mentor:
<09-10: FRC0809> <11-12: FRC3555> <12-14: FRC0073> <15-??: FRC3181>
Volunteer:
<FTAA> <CSA> <Defense Coordinator> <Scorekeeper> <Robot Inspector> <Official Scorer>
2016 Tour:
CTWAT [DefCoord] > Pittsburgh[Mentor/DefCoord] > TVR[FTAA] > FLR[CSA] > NE DCMP[CSA] > CMP[CSA]
|