|
Re: 4 wheel pwm drive with encoders for an xbox controller
You can only use the encoders connected directly to the JAGs in CANBus mode. You can still use encoders with PWM but you have to connect them to the digital side car's digital inputs or some other input to the cRio and then setup a controller. In LabView there is a PID object and in C++ and Java in WPILib there is a PIDController class you can use.
Edit: What EricH said. I had a hunch someone might beat me to the post.
__________________
"May the coms be with you"
Is this a "programming error" or a "programmer error"?
Last edited by kylelanman : 10-03-2014 at 23:54.
Reason: Simultaneous post
|