Home
last modified time | relevance | path

Searched refs:ang (Results 1 – 8 of 8) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/c++/
Ditg3200.cxx33 float *ang; in main() local
41 ang = gyro->getRotation(); // Read rotational speed (deg/sec) in main()
43 fprintf(stdout, "AngX: %5.2f\n", ang[0]); in main()
44 fprintf(stdout, "AngY: %5.2f\n", ang[1]); in main()
45 fprintf(stdout, "AngZ: %5.2f\n", ang[2]); in main()
/hardware/bsp/intel/peripheral/libupm/examples/java/
DItg3200Sample.java40 float[] ang; in main() local
48 ang = gyro.getRotation(); in main()
51 System.out.println("Angular Velocities: X: " + ang[0] + " Y: " + ang[1] + " Z: " in main()
52 + ang[2]); in main()
/hardware/bsp/intel/peripheral/libupm/examples/javascript/
Ditg3200.js34 var ang; variable
41 ang = gyro.getRotation(); // Read rotational speed (deg/sec)
48 console.log("AngX: " + round2Digits(ang.getitem(0)));
49 console.log("AngY: " + round2Digits(ang.getitem(1)));
50 console.log("AngZ: " + round2Digits(ang.getitem(2)));
/hardware/bsp/intel/peripheral/libupm/examples/python/
Ditg3200.py32 ang = gyro.getRotation() # Read rotational speed (deg/sec) variable
34 print "AngX: %5.2f" % (ang[0])
35 print "AngY: %5.2f" % (ang[1])
36 print "AngZ: %5.2f" % (ang[2])
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dml_math_func.c512 float inv_wrap_angle(float ang) in inv_wrap_angle() argument
514 if (ang > M_PI) in inv_wrap_angle()
515 return ang - 2 * (float)M_PI; in inv_wrap_angle()
516 else if (ang <= -(float)M_PI) in inv_wrap_angle()
517 return ang + 2 * (float)M_PI; in inv_wrap_angle()
519 return ang; in inv_wrap_angle()
Dml_math_func.h90 float inv_wrap_angle(float ang);
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dml_math_func.c512 float inv_wrap_angle(float ang) in inv_wrap_angle() argument
514 if (ang > M_PI) in inv_wrap_angle()
515 return ang - 2 * (float)M_PI; in inv_wrap_angle()
516 else if (ang <= -(float)M_PI) in inv_wrap_angle()
517 return ang + 2 * (float)M_PI; in inv_wrap_angle()
519 return ang; in inv_wrap_angle()
Dml_math_func.h90 float inv_wrap_angle(float ang);