Go to Post Even at Mc Donalds, dinner with Dean would be really cool! - Josh Hambright [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-08-2009, 02:02
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Normalizing motor speeds using Arcade Drive in Labview

Working on the 2009 robot and we notice that the left drive motor starts turning sooner than the right motor. So, using Labview and Arcade Drive, we are trying to make both motors go at the same time.

Looking at the Open 2 Motors vi, it looks like there is a TransformRef buried down in the RobotDriveDevRef that looks promising, or maybe the deadband, which also looks promising. We tried using these without much success of even figuring out how to modify the values.

So, looking for some thoughts or clues of the best way to solve our problem.

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 22-08-2009, 08:25
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,752
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: Normalizing motor speeds using Arcade Drive in Labview

The first thing I'd do is determine if it is a problem with the joystick values being skewed, or whether it is downstream. If you build a quick autonomous routing that sets the joystick to a known value with no X value, does the left side lead the right? If so, the problem probably has to do with either friction or binding on the right side. If that fixes it, then the problem is that straight forward on the joystick doesn't really mean straight, and the deadband or other transform sounds like a good fix.

If you open up the Drive Open VI, you'll see that it creates the Motors with squaring on and without transforms. You can Save As to your own copy and wire up some VI Refs for a transform or otherwise modify the open.

Another interesting thing to do may be to insert a chart into your teleop loop showing the last few hundred X and Y values from the joystick. This could diagnose a bad joystick or train a jittery driver by giving feedback.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 22-08-2009, 10:20
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Normalizing motor speeds using Arcade Drive in Labview

Also make sure that the speed controllers on each side are properly calibrated.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-08-2009, 11:17
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Normalizing motor speeds using Arcade Drive in Labview

Great ideas, I will follow through on both.

Jared,
How do you calibrate the speed controllers?
Reply With Quote
  #5   Spotlight this post!  
Unread 22-08-2009, 12:20
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,579
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: Normalizing motor speeds using Arcade Drive in Labview

Have you verified that mechanically, each side of the drivetrain has similar amounts of friction? Many times I've found that to be the problem. Simply turning the wheels by hand may uncover something.

Are you using victor or jaguar speed controllers? You'll get better results with a jaguar. If you look at the Jaguar and Victor transfer characteristics, you'll see two things about the Victor that hurt you. First, the center point is offset from where it should be (1.5 ms). This year's code works around this by offsetting the center point to a value that works for most victors, however there is a unit to unit variation. Calibrating them may help also. Instructions for calibrating either the Victor or Jaguar are in their respective manuals. Finally, the sharp increase at low PWM values hurts the victors here, because a small difference there makes a big difference in speed.

There is an example for the TransformRef in the LabVIEW examples. I don't have LabVIEW in front of me, but I think it was fairly obvious.

This year, for the first time, we had a robot that drove perfectly straight for 30 feet, using no feedback, thanks in large part to the Jaguars.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-08-2009, 17:01
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Normalizing motor speeds using Arcade Drive in Labview

Great feedback, thanks for that Joe. I will definitely check out the friction issues and also grab the manual for some Jaguar tuning. We are using Jaguars on both motors
Reply With Quote
  #7   Spotlight this post!  
Unread 22-08-2009, 19:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Normalizing motor speeds using Arcade Drive in Labview

Quote:
Originally Posted by rsisk View Post
We are using Jaguars on both motors
There's a place to select either Jaguar or Victor when you open the drive reference. Make absolutely sure you're telling the code that you're using Jaguars. The Victor workaround mentioned by Joe Ross makes Jaguar-controlled motors spin one direction faster than the other if you set it wrong.
Reply With Quote
  #8   Spotlight this post!  
Unread 23-08-2009, 00:20
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Normalizing motor speeds using Arcade Drive in Labview

wha! That's almost exactly what we were seeing when we started working on the code... OK, first thing to check when I get back to the code
Reply With Quote
  #9   Spotlight this post!  
Unread 28-08-2009, 00:37
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Normalizing motor speeds using Arcade Drive in Labview

First off, appreciate all the help.

The problem ended up being a loose electrical connection to the motor and a slight binding problem in the gear box.

Once we fixed all that, everything is looking good.

Funny how as the team's programming mentor, the first place I turn to is code. I should know better and will check my premises next time.
Reply With Quote
  #10   Spotlight this post!  
Unread 28-08-2009, 20:56
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Normalizing motor speeds using Arcade Drive in Labview

Quote:
Originally Posted by rsisk View Post
The problem ended up being a loose electrical connection to the motor and a slight binding problem in the gear box.
Sounds like a software problem to me...

(Spoken like a true hardware guy)
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
Reply


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
[FTC]: Using two Hitechnic Motor Controllers in LabView ZSLAYTER FIRST Tech Challenge 2 08-03-2009 10:36
Are motor speeds proportional to PWM value? ellisk Motors 9 07-02-2009 12:49
Labview questions, using motor and pot as a servo martin417 NI LabVIEW 7 05-02-2009 16:43
Tracking Servo motor with drive motor in Labview mbone206 Technical Discussion 5 28-01-2009 17:32
Arcade Drive Anfony VEX 4 08-11-2006 19:46


All times are GMT -5. The time now is 21:41.

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