Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Gyro Code Problems (http://www.chiefdelphi.com/forums/showthread.php?t=42581)

railerobotics 24-01-2006 19:17

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.

Greg Ross 24-01-2006 20:16

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. :) )

devicenull 24-01-2006 21:25

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..

railerobotics 24-01-2006 22:40

Re: Gyro Code Problems
 
I did exactly what was in Kevin's instructions.

Sorry for being very new to programming

railerobotics 25-01-2006 08:31

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.

6600gt 25-01-2006 15:40

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.

naor52 26-01-2006 09:30

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

6600gt 26-01-2006 22:37

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.

ldeffenb 27-01-2006 10:45

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


All times are GMT -5. The time now is 17:29.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi