#include <palSensors.h>

Public Member Functions | |
| void | Init (palBody *body, Float north_x, Float north_y, Float north_z) |
| Float | GetAngle () |
| Float palCompassSensor::GetAngle | ( | ) |
Returns the angle (radians) between compass direction and world north measured in the plane normal to sensor axis
| void palCompassSensor::Init | ( | palBody * | body, | |
| Float | north_x, | |||
| Float | north_y, | |||
| Float | north_z | |||
| ) |
Initializes the compass sensor. Attaches a compass to a given body, with a given initial direction for north.
| body | The body which the sensor is attached to. | |
| north_x | The axis which the angle is measured about w.r.t. the body (x) | |
| north_y | The axis which the angle is measured about w.r.t. the body (y) | |
| north_z | The axis which the angle is measured about w.r.t. the body (z) |
1.5.7.1