One thing that you could do, is in the initialization function. you could initialize the value to a function return or a hard coded value. so inside the initialization function you would do this
Quote:
|
gyroHeading = initGyroHeading();
|
or something to that effect, this should set the heading to what ever you want it to be. Im not %100 sure that you can get values straight off the pins right away before you exit whatever mode you are in before a match, but i dont see why.