Go to Post Design is iterative, right? - JesseK [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 27-01-2015, 17:20
roberthashley roberthashley is offline
Registered User
FRC #2611 (Jactown Vectors)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Jackson, Michigan
Posts: 9
roberthashley is an unknown quantity at this point
Exclamation Gyro Drive Straight

How to you use a gyro to keep your bot driving straight. We are using LabView.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2015, 00:21
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,112
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: Gyro Drive Straight

If you know what direction you want the robot to face, and you know what direction it is currently facing, you can use the difference between them to control the "turn" input of either a Mecanum or Arcade drive function.

If you scale the values properly, that will tend to rotate the robot toward the desired direction. That's a simple Proportional control system, which is what the "P" in "PID" stands for. If you find that you can't get the robot to hold its direction strongly enough without overshooting and oscillating, then you need to implement a more complete PID control with some Integral to account for the steady-state error, and perhaps some Derivative to reduce overshoot when the error starts out too high.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2015, 11:11
roberthashley roberthashley is offline
Registered User
FRC #2611 (Jactown Vectors)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Jackson, Michigan
Posts: 9
roberthashley is an unknown quantity at this point
Re: Gyro Drive Straight

Can you post a screenshot of that please im a visual learner.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2015, 12:35
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 204
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Re: Gyro Drive Straight

I will be able to post some screenshots of the general principal of how this works later today, sometime around 4:00 CST (maybe sooner).
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2015, 13:43
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,034
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Gyro Drive Straight

Quote:
Originally Posted by roberthashley View Post
Can you post a screenshot of that please im a visual learner.
What kind of drivetrain do you have, and what software are you using to control it?

If you have a mecanum drive and are using mecanum_Cartesion, here's a picture showing an approach you could use to drive straight at any desired orientation angle.


Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2015, 15:21
roberthashley roberthashley is offline
Registered User
FRC #2611 (Jactown Vectors)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Jackson, Michigan
Posts: 9
roberthashley is an unknown quantity at this point
Re: Gyro Drive Straight

We are using Tank Drive.
Reply With Quote
  #7   Spotlight this post!  
Unread 28-01-2015, 16:42
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,034
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Gyro Drive Straight

Quote:
Originally Posted by roberthashley View Post
We are using Tank Drive.
Please be more specific.

"Tank Drive" means different things to different people in different contexts.

[1]What kind of drivetrain do you have1, and

[2]what software2 are you using to control it?


1details please: number and type of wheels, number of gearboxes and gear ratio, chains/belts/direct, etc etc. The more detail, the better.

2e.g. what vi are you using, and how is your driver interface (joystick) mapped to that vi's inputs e.g. arcade, tank, other?



Reply With Quote
  #8   Spotlight this post!  
Unread 28-01-2015, 16:55
roberthashley roberthashley is offline
Registered User
FRC #2611 (Jactown Vectors)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Jackson, Michigan
Posts: 9
roberthashley is an unknown quantity at this point
Re: Gyro Drive Straight

six wheel
two mini cims preside
belt
two shifting gearboxes
i don't know the gear ratio
Xbox Controller

Dose that help
Attached Thumbnails
Click image for larger version

Name:	Drive.PNG
Views:	81
Size:	12.1 KB
ID:	18026  
Reply With Quote
  #9   Spotlight this post!  
Unread 28-01-2015, 17:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,034
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Gyro Drive Straight

Quote:
Originally Posted by roberthashley View Post
six wheel
two mini cims preside
belt
two shifting gearboxes
i don't know the gear ratio
Xbox Controller

Dose that help
Somewhat.

What does "two mini cims preside" mean?

Also can you get answers for the questions highlighted in red below:

Quote:
Originally Posted by Ether View Post
[1]What kind of drivetrain do you have1, and

[2]what software2 are you using to control it?


1details please: number and type of wheels, number of gearboxes and gear ratio, chains/belts/direct, etc etc. The more detail, the better.

2e.g. what vi are you using, and how is your driver interface (joystick) mapped to that vi's inputs e.g. arcade, tank, other?



Reply With Quote
  #10   Spotlight this post!  
Unread 28-01-2015, 17:47
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,112
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: Gyro Drive Straight

Driving a six-wheel skid-steer drivebase using Tank Drive (left and right joysticks) is not easy if the robot doesn't want to go straight, even with computer control based on a gyro sensor. It is very easy to make it go straight using Tank Drive if the robot is properly constructed.

But if you really want to try to compensate for a difficult-to-control robot, the idea is simple. Compute the difference between desired and measured heading, scale it to something that will yield a value between -1 and 1, then add it to the joystick input for one side and subtract it from the joystick input for the other side.
Reply With Quote
  #11   Spotlight this post!  
Unread 28-01-2015, 18:14
roberthashley roberthashley is offline
Registered User
FRC #2611 (Jactown Vectors)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Jackson, Michigan
Posts: 9
roberthashley is an unknown quantity at this point
Re: Gyro Drive Straight

two cims on each side.
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


All times are GMT -5. The time now is 04:40.

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