WizardOfAz
26-02-2004, 17:12
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:
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
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