Browse Source

changed short int to double

QGC4.4
pixhawk 15 years ago
parent
commit
2caee81844
  1. 2
      src/input/Freenect.cc
  2. 2
      src/input/Freenect.h

2
src/input/Freenect.cc

@ -100,7 +100,7 @@ Freenect::process(void)
//libfreenect changed some access functions in one of the new revisions //libfreenect changed some access functions in one of the new revisions
freenect_raw_device_state state; freenect_raw_device_state state;
freenect_get_mks_accel(state, &ax, &ay, &az); freenect_get_mks_accel(&state, &ax, &ay, &az);
//tiltAngle = freenect_get_tilt_degs(&state); //tiltAngle = freenect_get_tilt_degs(&state);
//these are the old access functions //these are the old access functions

2
src/input/Freenect.h

@ -60,7 +60,7 @@ private:
QMutex coloredDepthMutex; QMutex coloredDepthMutex;
// accelerometer data // accelerometer data
short ax, ay, az; double ax, ay, az;
double dx, dy, dz; double dx, dy, dz;
// gamma map // gamma map

Loading…
Cancel
Save