LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PROBLEM WITH 3D VIEW

Hello, I have a problem wi Lab View. I'm sending data from my mobile phone to the PC via wifi, and reading it with UDP protocol blocks. The data comes from the IMU of the mobile phone and i'm representing the accelerometer data with a 3D cube, simulating that the cube is my mobile phone and watching the movement of the cube. The problem is that when i'm in a 90 degree angle in any direction, the camera changes it's angle of vision rotating 180º, switching backwards, maybe to optimize the angle of visión but it's not in my interest. I want to block the position of the camera and let the cube rotate up to 360º if necessary. There's any option tho change this? Is it posible that the problem is due to negative angles? (I have calculated the angles doing atan(x)).

 

Thank you so much!

 

A Lab View Student.

0 Kudos
Message 1 of 2
(2,065 Views)

You should probably look at quaternions (aka Euler angles, IIRC). Rotation per direction doesn't work.

 

The problem with rotating around each direction, is that this is order sensitive. You get away with this, until angles are 0. Then you get weird results.

0 Kudos
Message 2 of 2
(2,025 Views)