Go to Post Use sensors to collect data about the surrounding environment, then discard it and drive into walls. - Jared Russell [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 26-02-2004, 17:12
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
competition_mode aka rxdata.rc_mode_byte.mode.disabled

The bit called "disabled" in the mode structure in ifi_default.h, with the comment "/* Competition enabled = 1, disabled = 0 */", and also called competition_mode in ifi_aliases.h, may leave some people wondering what the bit really indicates, as it did me. I got the following clarification from IFI:

Quote:
The bit is 1 whenever the RC is disabled before and after the match.
The bit is 0 during Autonomous mode and regular operation of the RC.
This is the same behavior as the "comp_mode" bit last year, which I suspected, but with the seemingly conflicting names and comments, I wanted to get it right.

A use we make of this bit is to know if we're in a "real game" or not. If I ever see this bit set to 1, I set a static variable realgame to 1 forevermore. I then use this realgame bit to disable various test features, since I never want them used during a real game.

Anyway, wanted to post this clarification from IFI in case anybody else needed it. I couldn't find the info elsewhere in CD.

Bill
 


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
The AKA Profile Field. Brandon Martus CD Forum Support 17 01-08-2003 18:54
Use of the AKA Profile Field Brandon Martus Announcements 0 30-07-2003 22:54
Looking for ways to incorporate Mt. Dew (aka - F.I.R.S.T. Fuel) into food recipes! Elgin Clock Chit-Chat 27 28-01-2003 11:09
Wonder Wheels (aka Side Slip Wheels) Scott358 Technical Discussion 4 08-01-2002 12:36
10 Spots left to Nationals aka The Championships? Hymnson General Forum 1 01-10-2001 18:48


All times are GMT -5. The time now is 10:25.

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