Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Gyro Instance (http://www.chiefdelphi.com/forums/showthread.php?t=134583)

VaneRaklan 14-02-2015 13:37

Gyro Instance
 
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

Re: Gyro Instance
 
Code:

double gyroVal = gyro.getAngle()
The value of gyroVal will not change.

VaneRaklan 14-02-2015 15:12

Re: Gyro Instance
 
See that's what i thought, but I wasn't sure. Thank you! :)


All times are GMT -5. The time now is 16:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi