palInclinometerSensor Class Reference

#include <palSensors.h>

Inheritance diagram for palInclinometerSensor:

palSensor

List of all members.

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 ()


Detailed Description

A Inclinometer Sensor An Inclinometer sensor returns the angle between its initial orientation and its current orientation.

Member Function Documentation

Float palInclinometerSensor::GetAngle (  ) 

Returns the angle (radians) between initial and current orientation measured in the plane normal to sensor axis

Returns:
The angle (radians)

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.

Parameters:
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)


The documentation for this class was generated from the following files:

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1