|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Arm motor not moving at full strength, recalibration necessary?
Hi all, we are competing in our second regional of the season this weekend(Buckeye) and we are having a little problem with our lifter arm.
When trying to control the movement of the arm up or down we are not achieving full power output. We can tell this because on the Dashboard feedback, the bar only goes about half as high as bars for our drivetrain. We have tried using both joysticks and buttons and everything gives the same results. We are programming in C++ and to set the power of the arm we simply declare the Victor as arm and then do arm->Set(stick2->GetY()); I was thinking there is some sort of calibration that is off, and don't know if this is a programming fix or the "hard reset" that I have read about when you recalibrate the victor using the reset button and some hard-coded values. We applied battery voltage directly to the motor and it moves at the right speed.. Any help will be greatly appreciated! |
|
#2
|
|||||
|
|||||
|
Re: Arm motor not moving at full strength, recalibration necessary?
If the dashboard is not showing the PWM value reaching the maximum, then you do not need to recalibrate the victor itself, your issue is in code somewhere.
EDIT: Or some type of hardware issue with the joystick. Have you tried setting the motor to a constant value of 1 using a button? Check and make sure that you are not setting the motor speed in two different places in your code. |
|
#3
|
|||
|
|||
|
Re: Arm motor not moving at full strength, recalibration necessary?
Quote:
|
|
#4
|
|||
|
|||
|
Re: Arm motor not moving at full strength, recalibration necessary?
Check to see if the code matches the type of motor controller?
Greg McKaskle |
|
#5
|
||||
|
||||
|
Re: Arm motor not moving at full strength, recalibration necessary?
Quote:
I haven't taken the time to look at the implementation of the 2 classes (ie. Jaguar and Victor), but suffice it to say that it works "correctly" with the Jaguar object controlling a Victor motor controller. |
|
#6
|
|||
|
|||
|
Re: Arm motor not moving at full strength, recalibration necessary?
IIRC, the major difference for PWM is that the Jag update period is 5ms and the Victor is 10. I suppose it is better to treat a Jag like a Victor than a Victor like a Jag, but better still is to match the timing to the device.
Greg McKaskle |
|
#7
|
||||||
|
||||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CIM Motor Strength | nskerven | General Forum | 15 | 19-03-2010 07:36 |
| Moving Part Arm | penguain | Rules/Strategy | 2 | 03-02-2008 11:10 |
| pic: Full Scale Prototype Ringer Arm 2007 | lynca | Extra Discussion | 5 | 20-01-2007 00:25 |
| Arm mounting on moving tracks? | welderman5000 | Technical Discussion | 4 | 10-01-2007 00:16 |
| pic: full frame arm | CD47-Bot | Extra Discussion | 4 | 16-02-2004 19:14 |