Go to Post oooh tight leather bumpers...sexy! - Nuttyman54 [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 24-01-2006, 19:17
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Gyro Code Problems

I have done all the proper modifications to Kevins camera code. I added the adc code and the gyro code from Kevins site to his camera code. After I download the code the robot controller and the terminal window pops up it doesn't show that the gyro's bias is being detected. What's the problem? I'm very knew to programming.

Last edited by railerobotics : 25-01-2006 at 08:31.
  #2   Spotlight this post!  
Unread 24-01-2006, 20:16
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Gyro Code Problems

Quote:
Originally Posted by railerobotics
I have done all the proper modifications to Kevins camera code. I added the adc code and the gyro code from Kevins site to his camera code. After I download the code the robot controller and the terminal window pops up it doesn't show that the gyro is being calibrated. What's the problem? I'm very knew to programming.
What is the state of the LEDs on the robot controller and the operator interface? (Your OI is powered, I hope. )
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #3   Spotlight this post!  
Unread 24-01-2006, 21:25
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Gyro Code Problems

Did you actually add the correct stuff to user_routines.c? I seem to remember having to do stuff that wasn't actually in the instructions..
  #4   Spotlight this post!  
Unread 24-01-2006, 22:40
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Gyro Code Problems

I did exactly what was in Kevin's instructions.

Sorry for being very new to programming
  #5   Spotlight this post!  
Unread 25-01-2006, 15:40
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Gyro Code Problems

Quote:
Originally Posted by railerobotics
I did exactly what was in Kevin's instructions.

Sorry for being very new to programming
Try downloading just the gyro code form Kevin and see if it works.
Look at the user_routines.c in the PURE gyro code.
  #6   Spotlight this post!  
Unread 26-01-2006, 09:30
naor52 naor52 is offline
Registered User
FRC #1578
 
Join Date: Dec 2005
Location: ISREAL
Posts: 23
naor52 is an unknown quantity at this point
Re: Gyro Code Problems

i did that and i didn't get reasonable values
because i move the sensor 90 degrees and back where he was and i don't get the same values which i get i n the start
  #7   Spotlight this post!  
Unread 26-01-2006, 22:37
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Gyro Code Problems

Quote:
Originally Posted by naor52
i did that and i didn't get reasonable values
because i move the sensor 90 degrees and back where he was and i don't get the same values which i get i n the start
I havent tried yet but I think the sensor gives you the change not the actual value.
  #8   Spotlight this post!  
Unread 27-01-2006, 10:45
ldeffenb ldeffenb is offline
Registered User
AKA: Lynn Deffenbaugh (Mr)
None #0386 (Team Voltage 386)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Florida
Posts: 75
ldeffenb has a spectacular aura aboutldeffenb has a spectacular aura aboutldeffenb has a spectacular aura about
Send a message via ICQ to ldeffenb Send a message via AIM to ldeffenb Send a message via Yahoo to ldeffenb
Re: Gyro Code Problems

Quote:
Originally Posted by naor52
i did that and i didn't get reasonable values
because i move the sensor 90 degrees and back where he was and i don't get the same values which i get i n the start
Remember that the gyro has a maximum turn rate that it can report. Turning faster than that (which is easy to do when holding the gyro in your hand) will cause signal overflows which translate into lower rotations report than actually occurred.

Try doing your test and turning the gyro VVVVEEEEERRRRRYYYYY SSSSSSLLLLLLLOOOOOOWWWWWWLLLLLLYYYYY and see what happens.

$0.02 from Lynn (D) - Team Voltage 386 Software
  #9   Spotlight this post!  
Unread 25-01-2006, 08:31
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Gyro Code Problems

Quote:
Originally Posted by GW (Greg) Ross
What is the state of the LEDs on the robot controller and the operator interface? (Your OI is powered, I hope. )
Yes it is powered.
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
Trying to import Camera code into program without. Kingofl337 Programming 1 18-02-2005 00:43
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
Coding / Style Standards for sharing C code Joe Johnson Programming 33 01-05-2004 15:15
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Wierd gyro code problems...pls help Salik Syed Programming 4 14-03-2004 01:29


All times are GMT -5. The time now is 02: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