#include <palSensors.h>

Public Member Functions | |
| void | Init (palBody *body, Float axis_x, Float axis_y, Float axis_z, Float up_x, Float up_y, Float up_z, Float g_x, Float g_y, Float g_z) |
| Float | GetAngle () |
| Float palInclinometerSensor::GetAngle | ( | ) |
Returns the angle (radians) between initial and current orientation measured in the plane normal to sensor axis
| void palInclinometerSensor::Init | ( | palBody * | body, | |
| Float | axis_x, | |||
| Float | axis_y, | |||
| Float | axis_z, | |||
| Float | up_x, | |||
| Float | up_y, | |||
| Float | up_z, | |||
| Float | g_x, | |||
| Float | g_y, | |||
| Float | g_z | |||
| ) |
Initializes the Inclinometer sensor. Attaches an inclinometer to a given body, with a given initial orientation.
| body | The body which the sensor is attached to. | |
| axis_x | The axis which the angle is measured about w.r.t. the body (x) | |
| axis_y | The axis which the angle is measured about w.r.t. the body (y) | |
| axis_z | The axis which the angle is measured about w.r.t. the body (z) | |
| up_x | The up axis w.r.t the body (x) | |
| up_y | The up axis w.r.t the body (y) | |
| up_z | The up axis w.r.t the body (z) | |
| g_x | The gravity axis w.r.t the world (x) | |
| g_y | The gravity axis w.r.t the world (y) | |
| g_z | The gravity axis w.r.t the world (z) |
1.5.7.1