|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: CAN, PID, Mecanums
It was in fact a failure to set the encoder lines in the open vi.
Now I have another mostly unrelated problem. The joysticks we are using no longer spring back perfectly to center, so the robot moves slightly even when the joysticks are not being touched. I looked up the jaguar calibration and found that it appeared to only apply to pwm. Is there a similar process for CAN or a way i can correct for it in the code? |
|
#2
|
||||
|
||||
|
Re: CAN, PID, Mecanums
Calibrating the jaguars isn't what you want to do anyway. What you need to do is implement a dead band on your joystick inputs. Basically you take any values less than some value, say 0.02 or something, and set it to 0.00. That way even if the joystick doesn't center itself completely, your robot won't be moving.
|
|
#3
|
|||
|
|||
|
Re: CAN, PID, Mecanums
I tried implementing a dead band, and it didn't work as expected. The robot will not move at all with the dead band in place. I made a VI to handle the dead band so the teleop is cleaner and it can be reusable...
I have attached screen shots and the VI itself. If someone could help me debug it that would be great. thanks |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|