View Single Post
  #7   Spotlight this post!  
Unread 26-03-2010, 09:37
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Arm motor not moving at full strength, recalibration necessary?

I think you're seeing a display issue only. Check the LED on the victor. If it goes solid green or red, that means it's getting full power.

The Jaguar uses a longer PWM pulse then the victor does. Thus, the PWM class (which Jaguar and Victor extend), has to work with both. It uses 251 PWM for the longest pulse a jaguar can take. 210 is the longest pulse a Victor can take. You can see these values in the initVictor and initJaguar functions. When the dashboard sends values, it uses the raw PWM values, so the largest value you'd ever see is 210, which would look approximately half speed on the dashboard display. The LED on the victor really says what speed it's going.

Changing from the victor class to the jaguar class fixed the display issue, but it can really confuse the victor controller, since it is now being updated faster then it can take, and with longer pulses then it was designed for.

If you want to fix the dashboard display, you can scale the values for the victors up to a 0-254 range. That would be the best solution.