C# Spatial wireframe example - compilation error and excepti

If you notice any bugs on our site, please report them here.
liftads
Fresh meat
Posts: 1
Joined: Sun Dec 20, 2015 3:01 am
Contact:

C# Spatial wireframe example - compilation error and excepti

Postby liftads » Sun Dec 20, 2015 5:00 am

I believe there are 2 lines in spatial wireframe application example C# code which cause compilation error and exception when using 1043 (0_0_3 - doesn't supports Gyro).

You should delete / comment out the following line in Form.cs:

1)
public void zeroGyro()
{
zeroStatusTxt.Text = "Wait...";
--> // phid.zeroGyro();


2)
void phid_SpatialData(object sender, SpatialDataEventArgs e)
{
...

if (lastMsCountGood)
{
double timechange = e.spatialData[i].Timestamp.TotalMilliseconds - lastMsCount; // in ms
double timeChangeSeconds = (double)timechange / 1000.0;

--> // calculateAttitude(e.spatialData[i], timeChangeSeconds);
calculatePosition(e.spatialData[i], timeChangeSeconds);
}

User avatar
Patrick
Lead Developer
Posts: 3077
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: C# Spatial wireframe example - compilation error and exc

Postby Patrick » Mon Dec 21, 2015 3:25 pm

The wireframe example is only for 3/3/3 spatials - it requires the gyro / compass.

-Patrick


Return to “Bug Report”

Who is online

Users browsing this forum: No registered users and 0 guests