Formula for gyro

Legacy support with Phidget21
aka

Formula for gyro

Postby aka » Thu Oct 06, 2011 11:57 am

Hello

I would like to know where i can find the formula that you use to calculate degree in the interface spatial full in the section gyro data.
Or what kind of formula i need to use.

Best regards

aka

Re: Formula for gyro

Postby aka » Thu Oct 06, 2011 1:37 pm

i have find in Form1.cs file c# a method calculateGyroHeading. But i have some probleme to translate it in as3.
data[i].Timestamp.TotalMilliseconds is equal to PhidgetSpatialEventData TimeMicroSeconds ?
And in the spatial_SpatialData c# method what is the ToString("f3") method ?

Best regards

erik
King of the Lab
Posts: 476
Joined: Fri Mar 06, 2009 12:42 pm
Location: Calgary, Canada
Contact:

Re: Formula for gyro

Postby erik » Thu Oct 06, 2011 3:46 pm

ToString() simply converts the double value of microseconds into a string. It is part of every object in c# and is used to display the value in the GUI. "F3" sets the floating point precision of microseconds to have three decimal points.


Return to “ActionScript 3.0 - Flash CS3 / Flex / AIR”

Who is online

Users browsing this forum: No registered users and 1 guest