Go to Post I believe that FIRST in itself is a reward. - link871 [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 01-03-2016, 09:54
Anthony Galea's Avatar
Anthony Galea Anthony Galea is offline
Formerly known as 3175student17
no team
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Riverview, Michigan
Posts: 583
Anthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant future
Extreme curve?

So yesterday during our unbag time, we decided to test our autonomous that should drive straight over the defenses, and the drive is set for 70% forward. However, when we tested it for the first time on the field, instead of driving straight, it curved extremely left, crashing into the drawbridge instead of going over the moat. We went into teleop mode and made sure the shifters were set both to low gear just to be sure, then we tested it again, and it still drove to the left. We have greased our gearboxes, and have both belts set to proper tension. We did notice that the shifter coupler (interfacing the piston with the shifter) on the right side (the faster side) is rotating with the shaft, but the left side was not. What could possibly be causing this huge curve, and how would we fix it? We don't have time to buy encoders and have them shipped to us, as we have a week 1 event. Thank you for your help!
__________________
2013-2016: FRC 3175 Knight Vision, student
2014 Center Line District Finalists with 815 and 280
2016 Woodhaven District Winners with 3604 and 6116
2017-?: Rose-Hulman Institute of Technology
  #2   Spotlight this post!  
Unread 01-03-2016, 10:01
Basel A's Avatar
Basel A Basel A is offline
It's pronounced Basl with a soft s
AKA: @BaselThe2nd
FRC #3322 (Eagle Imperium)
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Ann Arbor, Michigan
Posts: 1,928
Basel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond repute
Re: Extreme curve?

Does it drive straight in teleop? Have you checked the current going to each motor? Have you spun the wheels by hand to see if one side is harder to turn than the other?

Do you have a gyro? Using a gyro is pretty simple these days.
__________________
Team 2337 | 2009-2012 | Student
Team 3322 | 2014-Present | College Student
“Be excellent in everything you do and the results will just happen.”
-Paul Copioli
  #3   Spotlight this post!  
Unread 01-03-2016, 10:01
Joseph Smith's Avatar
Joseph Smith Joseph Smith is offline
Persistence alone is omnipotent.
FRC #3539 (Byting Bulldogs)
Team Role: Engineer
 
Join Date: Apr 2011
Rookie Year: 2011
Location: Romeo
Posts: 183
Joseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant futureJoseph Smith has a brilliant future
Re: Extreme curve?

First of all, does it only curve in autonomous, or in teleop as well?
If it's only in autonomous, that would indicate a software problem.
If it curves in teleop as well, it could be any number of problems.
Are the speed controllers all calibrated? Are they all blinking at the same rate when it's driving? Are all the motors running in the right directions? If all of those things are good, then it's likely a mechanical issue. I've seen over-tensioned chains, over-tightened wheel shafts, bad spacing in gearboxes, and chains rubbing on parts of the frame all cause problems like this before.
If you can't figure it out, could you compensate by powering one side more than the other in auton?
__________________
Design/fab team 2011-2013
Design/fab mentor 2014--
There are three types of people in the world:
1. Those who make things happen
2. Those who watch things happen
3. Those who wonder what happened.

  #4   Spotlight this post!  
Unread 01-03-2016, 10:06
Cothron Theiss's Avatar
Cothron Theiss Cothron Theiss is online now
Registered User
FRC #4462 (Full Metal Jackets)
Team Role: College Student
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Kingston, Tennessee
Posts: 538
Cothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond reputeCothron Theiss has a reputation beyond repute
Re: Extreme curve?

Quote:
Originally Posted by 3175student17 View Post
So yesterday during our unbag time, we decided to test our autonomous that should drive straight over the defenses, and the drive is set for 70% forward. However, when we tested it for the first time on the field, instead of driving straight, it curved extremely left, crashing into the drawbridge instead of going over the moat. We went into teleop mode and made sure the shifters were set both to low gear just to be sure, then we tested it again, and it still drove to the left. We have greased our gearboxes, and have both belts set to proper tension. We did notice that the shifter coupler (interfacing the piston with the shifter) on the right side (the faster side) is rotating with the shaft, but the left side was not. What could possibly be causing this huge curve, and how would we fix it? We don't have time to buy encoders and have them shipped to us, as we have a week 1 event. Thank you for your help!
Are you using pneumatic wheels? If so, are the two sides aired the same amount? That could cause slight curving, but I doubt it would account for what you're seeing. It might be a number of mechanical issues, like a bad bearing or a misaligned shaft on one side or a bad motor connection. Try pushing the robot forward manually and see if the robot curves on it's own. Sorry if this is not much help.
  #5   Spotlight this post!  
Unread 01-03-2016, 10:08
Anthony Galea's Avatar
Anthony Galea Anthony Galea is offline
Formerly known as 3175student17
no team
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Riverview, Michigan
Posts: 583
Anthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant future
Re: Extreme curve?

Quote:
Originally Posted by Basel A View Post
Does it drive straight in teleop? Have you checked the current going to each motor? Have you spun the wheels by hand to see if one side is harder to turn than the other?
Quote:
Originally Posted by Joseph Smith View Post
First of all, does it only curve in autonomous, or in teleop as well?
If it's only in autonomous, that would indicate a software problem.
If it curves in teleop as well, it could be any number of problems.
Are the speed controllers all calibrated? Are they all blinking at the same rate when it's driving? Are all the motors running in the right directions? If all of those things are good, then it's likely a mechanical issue. I've seen over-tensioned chains, over-tightened wheel shafts, bad spacing in gearboxes, and chains rubbing on parts of the frame all cause problems like this before.
If you can't figure it out, could you compensate by powering one side more than the other in auton?
For teleop, it isn't noticeable when actually driving the robot on the field for some reason, but when we put the robot on blocks, we could tell that the right side is noticeably faster in both high and low gear. We'll check into making sure the motors are going in the right direction.


Quote:
Originally Posted by Basel A View Post
Do you have a gyro? Using a gyro is pretty simple these days.
We did get one through FIRST Choice, I'll have our programmer look into that.
__________________
2013-2016: FRC 3175 Knight Vision, student
2014 Center Line District Finalists with 815 and 280
2016 Woodhaven District Winners with 3604 and 6116
2017-?: Rose-Hulman Institute of Technology
  #6   Spotlight this post!  
Unread 01-03-2016, 10:10
mrwright's Avatar
mrwright mrwright is offline
Coach
AKA: Michael Wright
FRC #4522 (Team SCREAM)
Team Role: Coach
 
Join Date: Apr 2012
Rookie Year: 2013
Location: Missouri
Posts: 109
mrwright is a splendid one to beholdmrwright is a splendid one to beholdmrwright is a splendid one to beholdmrwright is a splendid one to beholdmrwright is a splendid one to beholdmrwright is a splendid one to beholdmrwright is a splendid one to behold
Re: Extreme curve?

How many motors per gearbox? How are the motors connected?

We had the same problem last year and we discovered that one of the Anderson Power Pole connector contacts wasn't fully engaged. That solved the problem for us.
  #7   Spotlight this post!  
Unread 01-03-2016, 10:13
Anthony Galea's Avatar
Anthony Galea Anthony Galea is offline
Formerly known as 3175student17
no team
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Riverview, Michigan
Posts: 583
Anthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant futureAnthony Galea has a brilliant future
Re: Extreme curve?

Quote:
Originally Posted by mrwright View Post
How many motors per gearbox? How are the motors connected?

We had the same problem last year and we discovered that one of the Anderson Power Pole connector contacts wasn't fully engaged. That solved the problem for us.
We have 3 CIMs per gearbox, and we are using yellow crimp terminals.
__________________
2013-2016: FRC 3175 Knight Vision, student
2014 Center Line District Finalists with 815 and 280
2016 Woodhaven District Winners with 3604 and 6116
2017-?: Rose-Hulman Institute of Technology
  #8   Spotlight this post!  
Unread 01-03-2016, 10:16
Ari423's Avatar
Ari423 Ari423 is online now
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 588
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: Extreme curve?

Quote:
Originally Posted by mrwright View Post
How many motors per gearbox? How are the motors connected?

We had the same problem last year and we discovered that one of the Anderson Power Pole connector contacts wasn't fully engaged. That solved the problem for us.
You can use the power functions on the PDP to check the current going to each motor. If one motor is suspiciously low (or high), that could point to a mechanical or wiring problem, as opposed to a programming problem.

You can also try changing teleop to drive the motors at 70% power instead of whatever value the joystick says. That should tell you whether this is only happening in auton (the problem is in your auton code) or if it is always happening and the driver is subconsciously correcting for it (the problem is mechanical or somewhere else in the code).
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


  #9   Spotlight this post!  
Unread 01-03-2016, 10:31
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: Extreme curve?

Are you using PWM for your motor controllers? I had this issue in 2014 with PWM Talons until we calibrated them.
  #10   Spotlight this post!  
Unread 01-03-2016, 21:24
logank013's Avatar
logank013 logank013 is offline
System.out.println("Ready!");
AKA: Logan Kreisher
FRC #0234 (Cyber Blue)
Team Role: Scout
 
Join Date: Apr 2015
Rookie Year: 2015
Location: Indianapolis, IN
Posts: 703
logank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant futurelogank013 has a brilliant future
Re: Extreme curve?

Disclaimer: Not on the manufacturing team.

But check the code. Is one side driving faster than the other in the code? If so, try boosting the left side to 80% and the right side to 70%. Just adjust so the system drives straight, even if the code says it shouldn't (straight might be left 90% and right 60%. idk, robots do odd things.

Also, by some odd chance, does your left side have a higher gear reduction? could your gear boxes have been built just different enough?
__________________
Cyber Blue Season 2015
IN Indy District Chairman's Award Winner | IN Kokomo District Event Winner (With 135 and 3865)
IN Purdue District Event Winner (With 1024 and 2197) | IN District Championship Winner (With 1024 and 292)
WORLDS:
Archimedes Rank 3 After Quals. | Alliance #3 Captain
Archimedes Division Semi-Finalist (With 503,188, and 836)

Scouting is life. Excel is friend, not foe.
  #11   Spotlight this post!  
Unread 01-03-2016, 23:00
MetaEngineer's Avatar
MetaEngineer MetaEngineer is offline
Director of magic smoke
AKA: Barden
FRC #0246
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2010
Location: Boston, MA
Posts: 25
MetaEngineer is an unknown quantity at this point
Re: Extreme curve?

The number of parts in a typical FRC drivetrain can make for a noticeable variation in the speeds of drive units. When run open loop, the drivetrain on our bot this year has one side a few percent faster than the other which made it curve.

Certainly calibrate all motor controllers and double check connections first. You may be able to tweak your drive train for better consistency and find a balance of motor power settings that goes approximately straight, but the real solution is using some form of feedback. A combination of wheel speed encoders and/or a gyro lets the roborio make adjustments on the fly. However this can take a fair bit of time to get coded and tuned in properly.
  #12   Spotlight this post!  
Unread 02-03-2016, 00:37
wsh32's Avatar
wsh32 wsh32 is offline
The Nerdiest of the Nerd Herd
AKA: Wesley Soo-Hoo
FRC #0687 (The Nerd Herd)
Team Role: Leadership
 
Join Date: Sep 2014
Rookie Year: 2014
Location: SoCal
Posts: 16
wsh32 is on a distinguished road
Re: Extreme curve?

If you do have the time, I would advise using the gryo to make a feedback loop to keep the robot going straight. If tuned properly, that should make the drivebase drive straight regardless of any mechanical issues.
  #13   Spotlight this post!  
Unread 02-03-2016, 01:57
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 802
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Extreme curve?

Quote:
Originally Posted by logank013 View Post
Disclaimer: Not on the manufacturing team.

But check the code. Is one side driving faster than the other in the code? If so, try boosting the left side to 80% and the right side to 70%. Just adjust so the system drives straight, even if the code says it shouldn't (straight might be left 90% and right 60%. idk, robots do odd things.
Not to pick on you directly, but this is a convenient quote.

I'd caution against ignoring the issue or papering over it, and instead start to look for the root cause. If the issue is that a motor isn't plugged in when you thought it was, or the speed controller was disconnected or a mechanical issue, fixing it in code will make it look like everything works when it doesn't.

The current suggestion is a good one. After that, I'd try isolating the issue. Feel each of the sides of your drivetrain and try to see if one side has more resistance than the other. Try unplugging all but 1 motor per side and see how it performs. Do that for each of the motors on a side. Try controlled experiments to see if you can discover where the problem is.
  #14   Spotlight this post!  
Unread 02-03-2016, 07:02
yonip yonip is offline
Registered User
FRC #0449 (The Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Silver Spring, MD
Posts: 24
yonip is an unknown quantity at this point
Extreme curve?

If you're using PID for speed control, make sure the encoders are reading correctly (encoder shaft rotates with the shaft it's coupled with, it's wired up correctly, and you get a reading from the encoder when the wheel is spinning)
If the encoder isn't coupled correctly with the drive shaft, a PID loop will "correct" it to 100% power
Also for PID: if your motor is inverted relative to the encoder (ie positive value to the motor results in a negative value to the encoder) a feedback loop will occur, causing the motor to go at full speed, and probably staying there even when the setpoint is 0. The solution to this is negating the setpoint instead of inverting the motor.
  #15   Spotlight this post!  
Unread 02-03-2016, 07:22
Basel A's Avatar
Basel A Basel A is offline
It's pronounced Basl with a soft s
AKA: @BaselThe2nd
FRC #3322 (Eagle Imperium)
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Ann Arbor, Michigan
Posts: 1,928
Basel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond reputeBasel A has a reputation beyond repute
Re: Extreme curve?

If you still need help at Southfield tomorrow, definitely come find me and I can take a look.
__________________
Team 2337 | 2009-2012 | Student
Team 3322 | 2014-Present | College Student
“Be excellent in everything you do and the results will just happen.”
-Paul Copioli
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 17:32.

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