Quote:
Originally Posted by marccenter
How does this correlate to Easy-C implementation? If I place the function in a while loop, won't the function integrate multiple times and get different results.
What Easy-C implementation should I use with the gyro to make sure it only get's implemented once during the 18 msec(?) loop?

|
The runtime code in easyC does the integration for the gyro in the background on a timer interrupt. So it is independent of the user/master processor data exchanges or loops in your program. When you read the gyro angle using the easyC or WPILib function, it just gives you the most recent value for the heading that was computed in the background.
Does this answer your question?