Go to Post What about marriages ended by FIRST. I know that by Presidents Day my wife is not real happy with me :) - IndySam [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-04-2008, 13:42
zivo123 zivo123 is offline
Registered User
FRC #1690 (The Asnswer)
Team Role: Leadership
 
Join Date: Dec 2007
Rookie Year: 2008
Location: israel
Posts: 90
zivo123 is on a distinguished road
Gyro problem..HELP!

Hi everyone,
we have entered the last day of training for us (we are flying to america on monday!) and our Gyro suddenly became odd- when we turn it somewhere, it begins to count and gets to 15000~..
has anyone expirienced something like this before?
is it a problem with the sensor, the wiring, or the program?
Any comment or advice would be extremely helpful!
Thanks, Ziv
__________________
Ziv Oriol
Email - ziv_o123@walla.co.il

Our first game in the Israel regional:
http://www.youtube.com/watch?v=a_92wGPhWig
  #2   Spotlight this post!  
Unread 12-04-2008, 14:30
SL8's Avatar
SL8 SL8 is offline
...
AKA: Jesus
FRC #0647 (Cyber Wolf Corps)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Killeen, Texas (Fort Hood)
Posts: 352
SL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud of
Send a message via Yahoo to SL8
Re: Gyro problem..HELP!

Which direction are you turning and at what speed?
Is it any different than what you were doing before?
Are you using Kevin's or your own code, EasyC, or RobotC?
__________________


  #3   Spotlight this post!  
Unread 12-04-2008, 14:36
Tottanka's Avatar
Tottanka Tottanka is offline
It isnt about bots,its about humans
AKA: Liron Gurvitz
FRC #3211 (The Y Team)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Hadera, Israel
Posts: 1,420
Tottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond repute
Re: Gyro problem..HELP!

Quote:
Originally Posted by SL8 View Post
Which direction are you turning and at what speed?
Is it any different than what you were doing before?
Are you using Kevin's or your own code, EasyC, or RobotC?
i know they are using Kevin's code.
i think the direction doesn't meeter, happens in both, and they did not have a gyro before.
don't count on the i think thing though =]
__________________
My FRC record: 10 Years,FTA (2008-9), 3 Teams(1947,2669,3211).3 RCA, 1 Championship EI(2016), 1 Divisional finalist (2016), 1 Regional winner.
Israeli 2016 Volunteer of the year.
  #4   Spotlight this post!  
Unread 12-04-2008, 14:53
zivo123 zivo123 is offline
Registered User
FRC #1690 (The Asnswer)
Team Role: Leadership
 
Join Date: Dec 2007
Rookie Year: 2008
Location: israel
Posts: 90
zivo123 is on a distinguished road
Re: Gyro problem..HELP!

Almost correct Liron
We've had a gyro and it is acting the same way as the new one..
if you have any more questions we would love to help you help us.
__________________
Ziv Oriol
Email - ziv_o123@walla.co.il

Our first game in the Israel regional:
http://www.youtube.com/watch?v=a_92wGPhWig
  #5   Spotlight this post!  
Unread 12-04-2008, 16:04
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: Gyro problem..HELP!

Quote:
Originally Posted by zivo123 View Post
Hi everyone,
we have entered the last day of training for us (we are flying to america on monday!) and our Gyro suddenly became odd- when we turn it somewhere, it begins to count and gets to 15000~..
has anyone expirienced something like this before?
is it a problem with the sensor, the wiring, or the program?
Any comment or advice would be extremely helpful!
Thanks, Ziv
Are you using any interrupts?
__________________
-Borna Emami
Team 0x27
  #6   Spotlight this post!  
Unread 12-04-2008, 16:06
zivo123 zivo123 is offline
Registered User
FRC #1690 (The Asnswer)
Team Role: Leadership
 
Join Date: Dec 2007
Rookie Year: 2008
Location: israel
Posts: 90
zivo123 is on a distinguished road
Re: Gyro problem..HELP!

yes, we are using Kevin's original code..
__________________
Ziv Oriol
Email - ziv_o123@walla.co.il

Our first game in the Israel regional:
http://www.youtube.com/watch?v=a_92wGPhWig
  #7   Spotlight this post!  
Unread 12-04-2008, 16:13
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: Gyro problem..HELP!

Quote:
Originally Posted by zivo123 View Post
yes, we are using Kevin's original code..
Interrupts can corrupt the gyro variable.

To solve this problem, you need to make a secondary variable that holds the gyro value from the last cycle, and if your actual value changes drastically, then you will replace it with the old value and continue.

We had the same exact problem and now it is fixed.

Hope that this helped,
have a safe trip,
see you in Atlanta
__________________
-Borna Emami
Team 0x27
  #8   Spotlight this post!  
Unread 13-04-2008, 12:09
11Mort11's Avatar
11Mort11 11Mort11 is offline
Registered User
AKA: Alex Joss
FRC #0011 (MORT)
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Mount Olive
Posts: 94
11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold11Mort11 is a splendid one to behold
Send a message via AIM to 11Mort11
Re: Gyro problem..HELP!

are you letting it calculate the bias?
  #9   Spotlight this post!  
Unread 13-04-2008, 14:09
zivo123 zivo123 is offline
Registered User
FRC #1690 (The Asnswer)
Team Role: Leadership
 
Join Date: Dec 2007
Rookie Year: 2008
Location: israel
Posts: 90
zivo123 is on a distinguished road
Re: Gyro problem..HELP!

yes.. we are letting it calculate as in Kevin's original code - j < 300
__________________
Ziv Oriol
Email - ziv_o123@walla.co.il

Our first game in the Israel regional:
http://www.youtube.com/watch?v=a_92wGPhWig
  #10   Spotlight this post!  
Unread 13-04-2008, 14:22
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Gyro problem..HELP!

Is it increasing even when you stand still?
Also, look at the ADC input - is that fairly static or is it rapidly changing when the robot stands still?
  #11   Spotlight this post!  
Unread 13-04-2008, 19:21
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,554
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Gyro problem..HELP!

Check your wiring to your analog input.

An unconnected analog input will "count" up like you describe. I suspect you may have a broken wire, or a disconnected wire.
  #12   Spotlight this post!  
Unread 14-04-2008, 00:15
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,082
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Gyro problem..HELP!

I second that. The pullup resistor and low pass capacitor in the analog input circuitry will combine to pull the voltage up to VCC slowly in the absence of an input.
  #13   Spotlight this post!  
Unread 14-04-2008, 03:44
zivo123 zivo123 is offline
Registered User
FRC #1690 (The Asnswer)
Team Role: Leadership
 
Join Date: Dec 2007
Rookie Year: 2008
Location: israel
Posts: 90
zivo123 is on a distinguished road
Re: Gyro problem..HELP!

Could you possibly tell us hoe to wire it? and if you have ready we also need the wiring of the GTS and the IR..
__________________
Ziv Oriol
Email - ziv_o123@walla.co.il

Our first game in the Israel regional:
http://www.youtube.com/watch?v=a_92wGPhWig
  #14   Spotlight this post!  
Unread 14-04-2008, 12:06
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,554
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Gyro problem..HELP!

The usfirst.org website has a sensor guide that will describe the different pins and what they are for. Likewise, the email they sent out in December has a link that has a .pdf file that describes how to wire the IR board.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
gyro problem Guarana Programming 9 03-03-2008 15:48
Problem with gyro... capenga Programming 21 16-02-2006 19:25
Gyro not accurate - Problem naor52 Programming 15 27-01-2006 16:50
Gyro code problem AMIRAM Programming 10 23-01-2006 04:26


All times are GMT -5. The time now is 01:49.

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