Go to Post Let it be noted in the annals of FIRST history that on this day the game design committee did NOT choose to change, clarify, explain, or interpret ANY PART of the 2010 Manual. - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 12-02-2015, 11:01
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Drive Train Curves Only While Backing Up

Hello,

For some reason our drive train is curving to the right only when we backup. When we use the joysticks, it does not curve. When we set the talon manually (Talon.set(-1)), it curves to the right pretty severely.

We're using a 6-wheel drive train (3 on each side) with a mini toughbox. Our motors are 4 KoP CIM motors and we're using 4 talons for our motor controllers. We're splitting the PWM cable so we're only using two PWM cables to access the 4 talons. We're kind of unsure what this could be so I was wondering if anyone had an issue like this before or what your ideas might be as to what's causing it.

Thanks!
  #2   Spotlight this post!  
Unread 12-02-2015, 11:03
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by Ozuru View Post
Hello,

For some reason our drive train is curving to the right only when we backup. When we use the joysticks, it does not curve. When we set the talon manually (Talon.set(-1)), it curves to the right pretty severely.

We're using a 6-wheel drive train (3 on each side) with a mini toughbox. Our motors are 4 KoP CIM motors and we're using 4 talons for our motor controllers. We're splitting the PWM cable so we're only using two PWM cables to access the 4 talons. We're kind of unsure what this could be so I was wondering if anyone had an issue like this before or what your ideas might be as to what's causing it.

Thanks!
Are you making sure to set all of the talons manually? What do the diagnostic lights on the talons do when the robot is backing up?
  #3   Spotlight this post!  
Unread 12-02-2015, 11:04
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,017
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Drive Train Curves Only While Backing Up

Did you calibrate the speed controllers?
  #4   Spotlight this post!  
Unread 12-02-2015, 11:08
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by notmattlythgoe View Post
Are you making sure to set all of the talons manually? What do the diagnostic lights on the talons do when the robot is backing up?
I think so -- I'm invoking the RobotDrive.tankDrive(double left, double right) method.

The lights are a solid green when backing up. This is due to the fact that our motors are sort of hooked up backwards -- from the way it was explained to me we would have to swap the negative and the positive wires to fix it in hardware (which is supposedly a big no-no) so I've been compensating for it in programming. Is this what most teams do?
  #5   Spotlight this post!  
Unread 12-02-2015, 11:08
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by MrForbes View Post
Did you calibrate the speed controllers?
No, we did not -- I didn't know that this is possible. How would I go about doing this?
  #6   Spotlight this post!  
Unread 12-02-2015, 11:18
zachrobo1's Avatar
zachrobo1 zachrobo1 is offline
Registered User
AKA: Zach Cloud
FRC #1002 (The CircuitRunners)
Team Role: Leadership
 
Join Date: Dec 2013
Rookie Year: 2006
Location: Georgia
Posts: 86
zachrobo1 is a glorious beacon of lightzachrobo1 is a glorious beacon of lightzachrobo1 is a glorious beacon of lightzachrobo1 is a glorious beacon of lightzachrobo1 is a glorious beacon of light
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by Ozuru View Post
No, we did not -- I didn't know that this is possible. How would I go about doing this?
You are using the KOP Talons, right? This is the manual for them.
http://www.crosstheroadelectronics.c...Manual_1_1.pdf

On page 7 are the calibration instructions.
__________________
Team 1002 - Website - Facebook - Twitter - Youtube
  #7   Spotlight this post!  
Unread 12-02-2015, 11:39
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by zachrobo1 View Post
You are using the KOP Talons, right? This is the manual for them.
http://www.crosstheroadelectronics.c...Manual_1_1.pdf

On page 7 are the calibration instructions.
Thank you. I'm going to try that today. Would that be a valid explanation as to why it is curving?
  #8   Spotlight this post!  
Unread 12-02-2015, 12:37
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,017
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Drive Train Curves Only While Backing Up

It's the first thing I would do....it doesn't cost anything, but time.
  #9   Spotlight this post!  
Unread 12-02-2015, 13:01
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by MrForbes View Post
It's the first thing I would do....it doesn't cost anything, but time.
Got it.

We swapped the PWM cables in the RoboRIO (port 0's cables are now in 1 and port 1's cables are now in 0) and now, when reversing, we reverse while curving in the opposite direction. We hooked the output of them up to an oscilloscope and it is showing that one port's PWM is getting more signal than the other although in the code I am giving them the same values. Any ideas?

For example, if I do RobotDrive.tankDrive(-0.5, -0.5) it is producing the PWM similar to RobotDrive.tankDrive(-0.6, -0.5).
  #10   Spotlight this post!  
Unread 12-02-2015, 13:06
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,666
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Drive Train Curves Only While Backing Up

Are you declaring both motor controllers to be of the same class (e.g. not one Talon and one Jaguar)?

See the second paragraph in the white area of:
http://wpilib.screenstepslive.com/s/...ns-and-jaguars
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #11   Spotlight this post!  
Unread 12-02-2015, 13:06
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,017
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Drive Train Curves Only While Backing Up

Are you saying that the direction of curving is following the code, not the hardware?

if so, you'll have to get some help from a programmer....and I suggest you post images or listings of your code so they can see what you have done.
  #12   Spotlight this post!  
Unread 12-02-2015, 13:08
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,666
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by Ozuru View Post
.. and now, when reversing, we reverse while curving in the opposite direction.
That pretty much rules out any mechanical causes.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #13   Spotlight this post!  
Unread 12-02-2015, 13:10
TikiTech's Avatar
TikiTech TikiTech is offline
Mr. H
FRC #3880 (Tiki Techs)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2011
Location: Kailua-Kona, Hawaii
Posts: 252
TikiTech is just really niceTikiTech is just really niceTikiTech is just really niceTikiTech is just really niceTikiTech is just really nice
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by Ozuru View Post
Got it.

We swapped the PWM cables in the RoboRIO (port 0's cables are now in 1 and port 1's cables are now in 0) and now, when reversing, we reverse while curving in the opposite direction. We hooked the output of them up to an oscilloscope and it is showing that one port's PWM is getting more signal than the other although in the code I am giving them the same values. Any ideas?

For example, if I do RobotDrive.tankDrive(-0.5, -0.5) it is producing the PWM similar to RobotDrive.tankDrive(-0.6, -0.5).
Were the motor controllers recalibrated?

Another thing to try is program for ports 1&2 to see if it related to a specific port since the issues are common to port 0

Aloha!
__________________
Team 3880 - "Tiki Techs" "Mr. H" - Tiki Technologies Coach / Mentor
Kealakehe High School Robotics - Kailua-Kona, Hawaii
__________________________________________________ _____________________________
2016 Hopper Division | Orlando Regional Engineering Inspiration Award | Hawaii Regional Chairman's Award & Finalist & Woodie Flowers Finalist
2015 Carson Division | Silicon Valley Regional Engineering Inspiration Award | HI Regional Regional Winners & Engineering Inspiration & Deans List Finalist
2014 Newton Division | Hawaii Regional Engineering Inspiration Award & Deans List Finalist
2013 Newton Division | Inland Empire Regional Regional Chairman's & Creativity Award | Los Angles Regional Engineering Inspiration Award | | HI Regional
2012 Curie Division | Hawaii Regional Engineering Inspiration Award
2011 Newton Division | Hawaii Regional Regional Winners & Industrial Design Award
.
__________________________________________________ _____________________________
  #14   Spotlight this post!  
Unread 12-02-2015, 13:43
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: Drive Train Curves Only While Backing Up

Quote:
Originally Posted by Ozuru View Post
The lights are a solid green when backing up. This is due to the fact that our motors are sort of hooked up backwards -- from the way it was explained to me we would have to swap the negative and the positive wires to fix it in hardware (which is supposedly a big no-no) so I've been compensating for it in programming. Is this what most teams do?
I don't believe there is anything wrong with reversing the motor wiring to compensate for the left/right motor reversal problem. However we wire all of our motors the same way but in LabView we can open the motors with a parameter that tells the RoboRIO to reverse the meaning of the input values to the motors.

I suspect the call to the tank drive method or the open constructor would include similar parameters to invert the motor outputs.

Last edited by BitTwiddler : 12-02-2015 at 13:49.
  #15   Spotlight this post!  
Unread 12-02-2015, 13:58
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Drive Train Curves Only While Backing Up

Thanks for all of the replies so far everyone.

I'm not there testing but have someone else testing. I'm going to be recalibrating them (and consequently posting here with my findings) sometime around 3 PM EST today. Maybe I'm interpreting the oscilloscope wrong -- here are the images I received. Linking to rather than embedding the pictures because they're massive.

Oscilloscope Reading #1
Oscilloscope Reading #2

The readings are from the PWM signals with the ports swapped running the very basic code below I wrote to confirm it wasn't a programming issue.

As for my code testing this, I literally just created a new IterativeRobot I just did:

Code:
RobotInit() {
Talon t = new Talon(0);
Talon t2 = new Talon(1);
RobotDrive rDrive = new RobotDrive(t, t2);
} 

TeleopPeriodic() {
rDrive.tankDrive(-1, -1);
}
and this causes the curvature we're seeing. I have a more complex method in my actual robot code for CommandBased but, seeing as it curves with that basic code, I concluded that it was probably not my code.
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 00:46.

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