Go to Post the chicken crossed the road because it was a boundary. it wanted to demonstrate the spirit of FIRST by crossing that road. - Mike Ciance [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 04-30-2015, 09:41 AM
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Using an SPI Gyro

Hey guys,

In past years we haven't used many sensors to dictate any kind of drive control on the robot. For the most part we have always done tank drive on traction wheels or some combination of traction and omni wheels. This year we decided to have at it with an omni h drive. Moving to a little more maneuverability in our drive train made auton interesting. Using the h drive in auton often led to rotation of the whole chassis (due o the H drive not being centered perfectly combined with un equal weight distribution). The obvious way to fix this would be to use some type of gyro. I've played around with the KOP gyro and I'm not impressed. After a lot of calibration work and debugging, it still drifts way to much for my liking. After reading some of the other posts like this one,

http://www.chiefdelphi.com/forums/sh...d.php?t=130538

I think it would be a good idea to check out a gyro like the ADXRS450.

http://www.analog.com/en/products/me...-evaluationkit

I've run into a couple of problems though, most having to do with my knowledge base. First of all, I haven't worked with SPI before. From what I can tell, the gyro class that is normally used in C++ won't be applicable because initialization arguments require an analog in pin number. How would I go about wiring and programming such a gyro? Sorry in advance for my lack of knowledge in this subject, so if you guys could provide detailed help I would be grateful. I looked into using the SPI class but the notation says that it probably shouldn't be used directly, and it's just used by other devices. Thank you all in advance!

-Cinnamon Toast
Reply With Quote
 


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 10:45 AM.

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