Go to Post (middle school age) One time I had a truly awful day at school and came home crying. My mother's response? "Do you want to go to the build session tonight? It will make you feel better.." And it did. It always does. - rachelholladay [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 18-02-2013, 17:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
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 angle will not work with robot code

Quote:
Originally Posted by AquaMorph View Post
I copied your code and it is still constantly increase but this time by a smaller number.
How small? Is it of the order of 1 degree every 2 minutes or so? If so, that would be normal drift for KoP gyro.


Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2013, 18:13
AquaMorph's Avatar
AquaMorph AquaMorph is offline
Alumnus of 2059
AKA: Christian Colglazier
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2008
Location: Cary
Posts: 78
AquaMorph is on a distinguished road
Re: Gyro angle will not work with robot code

Quote:
Originally Posted by Ether View Post
How small? Is it of the order of 1 degree every 2 minutes or so? If so, that would be normal drift for KoP gyro.


It is to the forth decimal place and moving the gyro doesn't do anything.
__________________
FRC Drive: Play Store FRC Manager: Play Store
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2013, 21:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
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 angle will not work with robot code

Quote:
Originally Posted by AquaMorph View Post
It is to the forth decimal place and moving the gyro doesn't do anything.
Post a photo of how you have it wired. Show both the gyro end and the other end of the cable. Please use the macro setting on your camera for close-ups.


Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2013, 08:11
AquaMorph's Avatar
AquaMorph AquaMorph is offline
Alumnus of 2059
AKA: Christian Colglazier
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2008
Location: Cary
Posts: 78
AquaMorph is on a distinguished road
Re: Gyro angle will not work with robot code

Quote:
Originally Posted by Ether View Post
Post a photo of how you have it wired. Show both the gyro end and the other end of the cable. Please use the macro setting on your camera for close-ups.


I can't take a picture of it until tonight. However, I know the wiring is correct because I loaded the sample code on the robot and it ran fine and gave me the angles I wanted.
__________________
FRC Drive: Play Store FRC Manager: Play Store
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2013, 11:22
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
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 angle will not work with robot code

Quote:
Originally Posted by AquaMorph View Post
I can't take a picture of it until tonight. However, I know the wiring is correct because I loaded the sample code on the robot and it ran fine and gave me the angles I wanted.
We should have asked you right at the start what was your intended use for the gyro.

I just saw on another thread that you are intending to use the gyro for your shooter altitude angle.

I think you want a potentiometer or encoder instead.


Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2013, 11:58
AquaMorph's Avatar
AquaMorph AquaMorph is offline
Alumnus of 2059
AKA: Christian Colglazier
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2008
Location: Cary
Posts: 78
AquaMorph is on a distinguished road
Re: Gyro angle will not work with robot code

Quote:
Originally Posted by Ether View Post
We should have asked you right at the start what was your intended use for the gyro.

I just saw on another thread that you are intending to use the gyro for your shooter altitude angle.

I think you want a potentiometer or encoder instead.


I think an encoder would work best. I don't think a potentiometer came in the KOP. Do you have an idea of what would be best for a shooter that is going to only moving up and down in a range of 70 degrees?
__________________
FRC Drive: Play Store FRC Manager: Play Store
Reply With Quote
  #7   Spotlight this post!  
Unread 19-02-2013, 12:20
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
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 angle will not work with robot code

Quote:
Originally Posted by AquaMorph View Post
I think an encoder would work best. I don't think a potentiometer came in the KOP. Do you have an idea of what would be best for a shooter that is going to only moving up and down in a range of 70 degrees?
That's a great application for a potentiometer. An encoder would also work.


Reply With Quote
  #8   Spotlight this post!  
Unread 19-02-2013, 12:30
AquaMorph's Avatar
AquaMorph AquaMorph is offline
Alumnus of 2059
AKA: Christian Colglazier
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2008
Location: Cary
Posts: 78
AquaMorph is on a distinguished road
Re: Gyro angle will not work with robot code

Quote:
Originally Posted by Ether View Post
That's a great application for a potentiometer. An encoder would also work.


I don't think I have potentiometer but I can play with an encoder.
__________________
FRC Drive: Play Store FRC Manager: Play Store
Reply With Quote
  #9   Spotlight this post!  
Unread 19-02-2013, 22:35
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 207
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Gyro angle will not work with robot code

Quote:
Originally Posted by AquaMorph View Post
I don't think I have potentiometer but I can play with an encoder.
You must have a Radio Shack or Fry's somewhere near you. Get a 5K or 10K Linear Taper Potentiometer. They're cheap and easy to wire up and get working.
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2016 Robot Inspector - Fingerlakes, Pittsburgh
2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship - Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

Reply With Quote
  #10   Spotlight this post!  
Unread 20-02-2013, 09:21
mswalker mswalker is offline
Mentor
FRC #2583 (Westwood Robotics)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 26
mswalker is on a distinguished road
Re: Gyro angle will not work with robot code

We have seen the constantly increasing gyro behavior which seems to be due to bad connections. Check that the connection to the analog board and the gyro itself are solid and don't have any wire "hairs" shorting. Also, as mentioned, check the datasheet for the gain. Our gyro (I think this year or last year KOP) has a gain of 0.007 instead of the 0.0125 of the examples.
__________________
http://team2583.org
Reply With Quote
  #11   Spotlight this post!  
Unread 24-02-2013, 12:52
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 512
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Gyro angle will not work with robot code

http://www.chiefdelphi.com/forums/sh...42#post1239642

Please see this post, and see if this explains the issue.
__________________
The sooner we get behind schedule, the more time we have to catch up.

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 12:02.

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