Go to Post Either this entry is the winner or Andy needs professional help. I can't quite decide which... - Rich Kressly [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 09-02-2008, 11:07
eaglesfan10's Avatar
eaglesfan10 eaglesfan10 is offline
Registered User
FRC #1647 (Iron Devils)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2005
Location: New Jersey
Posts: 19
eaglesfan10 is an unknown quantity at this point
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.
  #2   Spotlight this post!  
Unread 09-02-2008, 11:43
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
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
__________________


  #3   Spotlight this post!  
Unread 09-02-2008, 12:16
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: The Gyro in Disabled Mode

Quote:
Originally Posted by eaglesfan10 View Post
Am I also supposed to call Initialize_ADC() and Initialize_Gyro() in Disabled_Init?
These functions should be called in teleop.c/Initialize().

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
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 Heading Correction in Operator Mode wkethman Programming 1 26-01-2008 15:25
Reading gyro before Autonomous mode Doug Leppard Programming 9 06-01-2008 21:02
How does disabled mode work? gnirts Programming 5 13-02-2006 11:47
competition_mode aka rxdata.rc_mode_byte.mode.disabled WizardOfAz Programming 3 29-02-2004 08:24
how can you use a gyro in autonomous mode magical hands Programming 3 02-01-2004 13:31


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

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