Go to Post But please, don't attempt to subvert the rules. It almost invariably becomes more trouble than it's worth. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Motors
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 03-03-2011, 20:51
Camren's Avatar
Camren Camren is offline
Mentor
FRC #3081 (RoBoEaGleS)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Minnesota
Posts: 219
Camren is a jewel in the roughCamren is a jewel in the roughCamren is a jewel in the rough
Angry Victor troubles

Ok folks having some really wired problems with my victors to start off no their not brand new but they are from last year they are hooked up in the
12v power distribution spot and are connected using a pwm cable. but when i enable the robot the motors starts spinning in reverse when the joystick is in the 0 position when the joy stick is in the -1 position it stops and when its in the 1 position it goes forward im looking for some insite on what i can do to fix this
  #2   Spotlight this post!  
Unread 03-03-2011, 20:59
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Victor troubles

Quote:
Originally Posted by Camren View Post
Ok folks having some really wired problems with my victors to start off no their not brand new but they are from last year they are hooked up in the
12v power distribution spot and are connected using a pwm cable. but when i enable the robot the motors starts spinning in reverse when the joystick is in the 0 position when the joy stick is in the -1 position it stops and when its in the 1 position it goes forward im looking for some insite on what i can do to fix this
It sounds like they're waaaaaaaay out of calibration, or your code is whacked out. I'd suspect code first.

What are you using to program the robot? I'd use a printf() (or the equivalent for your programming language) to dump out what commands you're issuing the Victors in code to make sure it's doing what you want. If it is, then try calibrating them.

Out of curiousity, what are the lights on the Victors doing as this occurs?
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #3   Spotlight this post!  
Unread 03-03-2011, 21:01
Micah Chetrit's Avatar
Micah Chetrit Micah Chetrit is offline
Registered User
FRC #3276 (NSR)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: New London - Spicer MN
Posts: 90
Micah Chetrit is on a distinguished road
Re: Victor troubles

that sounds like programming. I use C++, but what I would do is when I "get" the value from the joystick subtract one and that should (emphasis on should) fix it.
  #4   Spotlight this post!  
Unread 03-03-2011, 21:07
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Victor troubles

Quote:
Originally Posted by Micah Chetrit View Post
that sounds like programming. I use C++, but what I would do is when I "get" the value from the joystick subtract one and that should (emphasis on should) fix it.
This doesn't sound as simple as an offset error, but something a bit more loopy.

It would also help to see the code that commands the Victors.

My IM contact information is in my profile, if you guys want to try and reach me directly, I'm assuming you're competing this weekend, so obviously you're in a time crunch.

Matt
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #5   Spotlight this post!  
Unread 03-03-2011, 21:50
Camren's Avatar
Camren Camren is offline
Mentor
FRC #3081 (RoBoEaGleS)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Minnesota
Posts: 219
Camren is a jewel in the roughCamren is a jewel in the roughCamren is a jewel in the rough
Re: Victor troubles

Actually this is our practice bot since are is bagged and tagged and the lights that flash are orange when dissable and then red and orange when enable red when it starts to jolt and spins motor and orange when it is stopped also we use lab view software to program
  #6   Spotlight this post!  
Unread 03-03-2011, 21:51
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Victor troubles

Quote:
Originally Posted by Camren View Post
Actually this is our practice bot since are is bagged and tagged and the lights that flash are orange when dissable and then red and orange when enable red when it starts to jolt and spins motor and orange when it is stopped
Sounds like it's your code. Can we see it? What language is it in?
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #7   Spotlight this post!  
Unread 04-03-2011, 06:28
Vikesrock's Avatar
Vikesrock Vikesrock is online now
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: Victor troubles

Are the Victors properly set as Victors when you open the Device Reference in Begin.VI?

If they are, or you don't know what that means, please post your Begin.VI and Teleop.VI and let us know which DevRefs refer to the devices in question.
__________________


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)
  #8   Spotlight this post!  
Unread 04-03-2011, 09:14
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Victor troubles

Are they referenced as Servo's?
__________________
  #9   Spotlight this post!  
Unread 04-03-2011, 22:58
Camren's Avatar
Camren Camren is offline
Mentor
FRC #3081 (RoBoEaGleS)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Minnesota
Posts: 219
Camren is a jewel in the roughCamren is a jewel in the roughCamren is a jewel in the rough
Re: Victor troubles

Teleop.vi
Begin.vi
  #10   Spotlight this post!  
Unread 05-03-2011, 08:24
Vikesrock's Avatar
Vikesrock Vikesrock is online now
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: Victor troubles

Quote:
Originally Posted by Camren View Post
Looks like your copy of Labview has not been updated. On your programming computer you need to get the Labview Update and Utilities Update from this page


On your Classmate or other Driver Station computer you need to get the Driver Station Update from the same page.

After updating Labview your Open 2 Motor VI will become a polymorphic VI. This means it will have a box under it like your solenoid VIs do to select the type of motor controller (Jaguar, Victor, CAN Jaguar). Change the box to Victor and you should be good to go with the Drive motors.

Does that solenoid code work properly? If you want to set a single solenoid using one of two buttons you should use a single Solenoid Set VI and an AND to combine the button signals. If they are double solenoids which is what your comments seem to suggest then you may be able to use the code in a similar way to how it is currently written but you will have to pass a device reference for a single solenoid on the appropriate channel to each solenoid set VI, not the same device reference to both.
__________________


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)
  #11   Spotlight this post!  
Unread 05-03-2011, 08:44
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Victor troubles

Don't forget that Victors and Jaguars have a calibrate feature. This is a simple internal learning mode that establishes the extreme throttle positions and center position of your joysticks. If the center calibration is off your motors will move when your joysticks are centered. Since these are not new, consider that someone has calibrated to different center values in the past.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #12   Spotlight this post!  
Unread 03-04-2011, 16:38
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Victor troubles

Quote:
Originally Posted by Al Skierkiewicz View Post
Don't forget that Victors and Jaguars have a calibrate feature. This is a simple internal learning mode that establishes the extreme throttle positions and center position of your joysticks. If the center calibration is off your motors will move when your joysticks are centered. Since these are not new, consider that someone has calibrated to different center values in the past.
To by knowledge, doesn't Victor calibration involves moving from 0, then back and forth between -1 and 1, then back to 0 to identify maximum forward, maximum reverse, and neutral? I can't quite see how they would be recalibrated to 1 fd, 0 rev, and -1 neutral.

This sounds more like a code issue to me, though I can't see for the life of me how it's happening.
  #13   Spotlight this post!  
Unread 03-04-2011, 17:40
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Victor troubles

Well, say the Victor interprets 255 as full forward, and 127 as full reverse. In this case, 0 could be perceived as a neutral, or whats really happening, as just a bad command that shuts the Victor off. Likely, the calibration was done poorly OR the output from the Crio got screwed up with bad code, and is sending only good signals between 0 and -1 on the joystick; from 0 to 1, the signal is whack.
__________________
Attending: MN Duluth Regional
  #14   Spotlight this post!  
Unread 03-04-2011, 18:10
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Victor troubles

Bob and Alex,
In the absence of actual conversion in your code, the speed controllers are capable of "learning" the joystick values from PWM input for full forward and full reverse and will use the center position to set brake/coast mode and zero throttle. Since most resistors in joysticks are +/-20% accurate minimum, if you pass joystick values directly to the controllers, they will not match what was set at the factory. In that case, full throttle may not be achieved, motors will not come to rest when the joystick is centered, etc. Hobby PWM uses values of 0 indicate full throttle in one direction, 254 full throttle in the other direction and 127 for zero throttle.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #15   Spotlight this post!  
Unread 03-04-2011, 19:01
John Wanninger's Avatar
John Wanninger John Wanninger is offline
Registered User
FRC #1732 (Hilltoppers)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: Milwaukee, WI
Posts: 142
John Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond reputeJohn Wanninger has a reputation beyond repute
Re: Victor troubles

You may want to verify that the Digital Sidecar is receiving power from the Power Distribution Panel. We had a very similar experience with a Victor - and then found that the circuit breaker powering the Sidecar had been mistakenly removed.(We had pulled several of the breakers to disable portions of the robot during testing, and pulled one too many!)
__________________

"A hundred times every day I remind myself that my inner and outer life are based on the labors of other men, living and dead, and that I must exert myself in order to give in the same measure as I have received and am still receiving..."
--Albert Einstein

2001: FLL852 |2002: FLL20/FLL21 |2003: FLL23/FLL25 |2004: FLL14/FLL16 |2005: FVC22/FLL124 |2006: FLL3/FLL2986/FVC22/FRC1732 |2007:FLL3/FLL34/FLL56/FRC1732
2008: FLL3/FLL18/FRC1732 |2009: FLL101/FLL8963/FRC1732 ...(etc.!)
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


All times are GMT -5. The time now is 15:09.

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