Log in

View Full Version : Gyro Instance


VaneRaklan
14-02-2015, 13:37
I was wondering if anyone knew a way to take an instance of a gyro. So creating a variable that would hold a single value from the gyro that won't change with the actual movement of the gyro. So if you took he instance and it read 263.453 degrees and you started rotating till the gyro read say 340.231 degrees or something; that variable of instance would still read 263.453.

Any ideas on how to do this or some way of doing something like this? (TBH the answer is probably staring me straight in my face)

wmarshall11
14-02-2015, 13:54
double gyroVal = gyro.getAngle()

The value of gyroVal will not change.

VaneRaklan
14-02-2015, 15:12
See that's what i thought, but I wasn't sure. Thank you! :)