Go to Post I just turned 51 and I'm still not sure what I want to be when I grow up! - Mike Betts [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 16-02-2015, 18:30
ShadowBot's Avatar
ShadowBot ShadowBot is offline
Registered User
FRC #3577
 
Join Date: Jan 2013
Location: Scottsdale, AZ
Posts: 9
ShadowBot is an unknown quantity at this point
Help with Gyro for Field-centric Mecanum Drive

So we have been trying to implement the gyro for field centric mecanum drive. So far, when the gyro code is hooked up to the holonomic drive, the robot spins out of control. I think I managed to fix that problem (its value used to read INF), but now the gyro angle constantly counts up at roughly 0.0001 per second and does not change when the robot rotates.

Gain is set to 0.0125 on front panel and have a button on my controller to reset the gyro.

Could our gyro be faulty or something wrong with the code?

Begin


Teleop
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2015, 18:35
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: Help with Gyro for Field-centric Mecanum Drive

What gyro are you using? What connections on it are you using?

The Yaw Rate Sensor "gyro" board from the Kit of Parts a few years ago has a temperature output as well as a turn rate output. Accidentally connecting the temperature to a gyro accumulator can have the effect you described.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2015, 16:14
ShadowBot's Avatar
ShadowBot ShadowBot is offline
Registered User
FRC #3577
 
Join Date: Jan 2013
Location: Scottsdale, AZ
Posts: 9
ShadowBot is an unknown quantity at this point
Re: Help with Gyro for Field-centric Mecanum Drive

Yes, we are using the am-2067. It's connected with a pwm cable to DIO 1 with the signal wire on the rate pin, power wire to the next pin, and ground wire to the corner pin.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2015, 16:56
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: Help with Gyro for Field-centric Mecanum Drive

Quote:
Originally Posted by ShadowBot View Post
DIO 1
Well, there's your problem. Gyros of that type provide an analog output and must be connected to Analog Input 0 or 1. If you don't have anything connected to the Analog Input signal pin, it will do what you're describing.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2015, 17:55
ShadowBot's Avatar
ShadowBot ShadowBot is offline
Registered User
FRC #3577
 
Join Date: Jan 2013
Location: Scottsdale, AZ
Posts: 9
ShadowBot is an unknown quantity at this point
Re: Help with Gyro for Field-centric Mecanum Drive

....... Thank you! getting my brain checked
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 21:30.

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