|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
cannot get fifth jaguar working
This is probably answered somewhere on the forum, but I couldn't find it.
We are using the DefaultRobot code, using four Jaguars to control four drive motors (using SpeedController). We are trying to add a fifth Jaguar to control a motor for our game piece manipulator. In the DefaultRobot class we declare the fifth Jaguar as such - Jaguar m_fifthMotor; In teleopInit, we create the object with - m_fifthMotor = new Jaguar(5); Whenever this last line is not in, the four Jaguars for the drive system work fine. Whenever this last is compiled in, the four Jaguars blink while enabled, and thus do not work. We don't see any errors on the debug output, and the cRio does not appear to be crashing. What are we doing wrong? |
|
#2
|
||||
|
||||
|
Dont know if this is your problem but last year we had trouble running more than 4 motors on a side car. The problem turned out to be an incomplete wiring connection(not enough contact with the wire). So check if all three Green LEDs are lit on the Digital Sidecar if not, redo the Wago connection with more wire contact to see if that solves your problem!
Hope that helps, Jon |
|
#3
|
||||
|
||||
|
Re: cannot get fifth jaguar working
We had a wiring problem, the digital sidecar was not getting power from the distribution board. The 5v LED was the only LED lit, power was apparently leaking from somewhere else that was enough to run four motors, but not 5(?). Anyway, once the power was wired correctly, everything works fine. Thanks for the input!
|
|
#4
|
|||
|
|||
|
Re: cannot get fifth jaguar working
Do you have something else declared on the pwm port 5?
Is the code spitting out errors on the robot? Do you see any error messages in the debug console? |
|
#5
|
|||
|
|||
|
Re: cannot get fifth jaguar working
How are you controlling these jags? CAN or PWM?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|