Go to Post So we developed AI... it figured out the clue... already... made itself accordingly... and is currently walking to the peachtree regional if you find him ask him what the objectives are, we'd sure like to know! - Collmandoman [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-03-2010, 00:52
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
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   Spotlight this post!  
Unread 26-03-2010, 01:13
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
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.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #3   Spotlight this post!  
Unread 26-03-2010, 06:39
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: Arm motor not moving at full strength, recalibration necessary?

Quote:
Originally Posted by Vikesrock View Post
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.
I have tried hard coding the value and got the same results. I will double check the code, but I am pretty sure there is only one line that utilizes the arm motor.
  #4   Spotlight this post!  
Unread 26-03-2010, 08:20
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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   Spotlight this post!  
Unread 26-03-2010, 08:51
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: Arm motor not moving at full strength, recalibration necessary?

Quote:
Originally Posted by Kyledoo View Post
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!
We noticed the exact same thing when using the Victor class. Try using the Jaguar class instead... that worked for us. I know it sounds wrong and I understand that the hardware you are using is actually a Victor motor controller, but when we accidentally used a Jaguar object to interface to a Victor it worked great when we "fixed" it to be a Victor it had the same problem you describe. 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   Spotlight this post!  
Unread 26-03-2010, 09:00
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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   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,588
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 23:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi