Go to Post Oh, you mean the refs. The only hand signal I've seen the judges use is the hi-five. - RoboMom [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 04-02-2008, 22:22
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Gyro problems, crossposted from Electrical

in this thread I asked about testing the kit gyro and was given a programming answer, so I will continue my programming question here.

I am wanting the easiest way to test my gyro to see if it is dead.

I have the kit gyro hooked up with a PWM cable, with the white cable connected to TW(twist), the black cable connected to GB (ground), and the red cable to 5R (+5V). I plug it into the Robot Controllers Analog input 1 with the colors corresponding to those on the inputs.

In my code, under user_routines.c I have added the following

double yawtest = 0;
yawtest = Get_Analog_Value( rc_ana_in01 );
printf("yawtest %d\r", yawtest);

I get a number back that does not change (17535).

I am definitely hooked to TW (twist) and not RW (relative temperature).

At this point I am really just wanting to see a number that changes when I move the gyro chip. Am I doing something wrong or do I have a dead gyro? Is there an easier way to see if it is dead?
 


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 and accelerometer problems paulcd2000 Programming 6 16-02-2008 15:17
Gyro Autonomous Problems cprogrammer Programming 5 23-03-2007 14:28
Problems with the Gyro Guy_E Programming 21 04-12-2006 17:23
Problems with the gyro Conan Programming 7 06-02-2006 01:45
Gyro Code Problems railerobotics Programming 8 27-01-2006 10:45


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