Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   The Gyro in Disabled Mode (http://www.chiefdelphi.com/forums/showthread.php?t=63624)

eaglesfan10 09-02-2008 11:07

The Gyro in Disabled Mode
 
I was wondering about setting up the gyro in disabled mode. I realize that there is currently commented-out code in disabled.c to calculate the gyro bias. Am I also supposed to call Initialize_ADC() and Initialize_Gyro() in Disabled_Init? If I do, do I take those initialize adc and gyro functions out of teleop_init as well the start and stop gyro bias calc functions in teleop()? Any suggestions would really be appreciated. Thanks.

tseres 09-02-2008 11:43

Re: The Gyro in Disabled Mode
 
if you use kevin's new v3.0 sensor code, the gyro automatically starts to calculate the gyro bias in disabled mode. just read the readme

Kevin Watson 09-02-2008 12:16

Re: The Gyro in Disabled Mode
 
Quote:

Originally Posted by eaglesfan10 (Post 695099)
Am I also supposed to call Initialize_ADC() and Initialize_Gyro() in Disabled_Init?

These functions should be called in teleop.c/Initialize().

-Kevin


All times are GMT -5. The time now is 23:48.

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