Go to Post Funny, I came to robotics for the robot, but find I stay for the people. - Mr. Pockets [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 09-12-2014, 18:43
j_johnson888 j_johnson888 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: United States
Posts: 3
j_johnson888 is an unknown quantity at this point
[FTC]: Gyro Straight

Greetings: I'm currently working on implementing the Gyro sensor for our team in the Autonomous phase. I started by making a code that would turn the robot a certain number of degrees at a desired power level using the Gyro sensor, which I found fairly straightforward. However, I hit a roadblock when I went to create a function that would use the Gyro heading value and have the robot continue in a straight path even if it were to be interfered with or the wheels weren't exactly in sync. Another team suggested using encoders on the motors for this, however my team is tight on our budget and can't afford to use encoders, so we will have to resort to using the Gyro and wait commands in autonomous. If anyone has a code that they could share or something that would point me in the right direction on how to accomplish this, it would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-12-2014, 20:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,022
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: [FTC]: Gyro Straight


what kind of drivetrain? skid-steer, swerve, mecanum, omni, other?


Reply With Quote
  #3   Spotlight this post!  
Unread 09-12-2014, 20:36
j_johnson888 j_johnson888 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: United States
Posts: 3
j_johnson888 is an unknown quantity at this point
Re: [FTC]: Gyro Straight

Quote:
Originally Posted by Ether View Post

what kind of drivetrain? skid-steer, swerve, mecanum, omni, other?


Mecanum
Reply With Quote
  #4   Spotlight this post!  
Unread 09-12-2014, 21:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,022
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: [FTC]: Gyro Straight

Quote:
Originally Posted by j_johnson888 View Post
Mecanum
You can use a gyro to maintain the heading of a bot (i.e. keep it pointed in the same direction).

If you keep a skid-steer pointed in the same direction it will, for the most part, drive in that direction

With a mecanum, the bot can drift left/right (strafe) without turning, so keeping it pointed in the same direction doesn't necessarily prevent it from drifting sideways.

If your mec bot drifts left/right or rotates when given a pure forward command, my suggestion would be to work on the mechanical and electrical aspects of the drivetrain to correct that as much as possible before turning to software solutions.



Last edited by Ether : 09-12-2014 at 21:24.
Reply With Quote
  #5   Spotlight this post!  
Unread 09-12-2014, 21:42
j_johnson888 j_johnson888 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: United States
Posts: 3
j_johnson888 is an unknown quantity at this point
Re: [FTC]: Gyro Straight

Quote:
Originally Posted by Ether View Post
You can use a gyro to maintain the heading of a bot (i.e. keep it pointed in the same direction).

If you keep a skid-steer pointed in the same direction it will, for the most part, drive in that direction

With a mecanum, the bot can drift left/right (strafe) without turning, so keeping it pointed in the same direction doesn't necessarily prevent it from drifting sideways.

If your mec bot drifts left/right or rotates when given a pure forward command, my suggestion would be to work on the mechanical and electrical aspects of the drivetrain to correct that as much as possible before turning to software solutions.


Thanks for your suggestion - I just realized that it actually was a hardware issue with the wheels and the axle collars. I should have checked that sooner.
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 16:55.

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