Public Member Functions | Protected Attributes

Compass Class Reference

Magnetometer compass. More...

#include <compass.h>

Inheritance diagram for Compass:
Module Compass3Axis HMC5843

List of all members.

Public Member Functions

 Compass ()

Protected Attributes

SocketF m_heading

Detailed Description

Magnetometer compass.


Sockets exposed:

Compass.Heading Heading in radians. 0 is north, + PI/2 = east, -PI/2 = west

Compass3Axis.RawX Raw values for debugging
Compass3Axis.RawY
Compass3Axis.RawZ

Compass3Axis.OffsetX Zero offsets
Compass3Axis.OffsetY
Compass3Axis.OffsetZ

Compass3Axis.Filter Smoothing

Compass3Axis.Rotation Offset to allow for magnetic declination etc

external sockets expected:

AHRS.pitch needed for tilt correction
AHRS.roll


Constructor & Destructor Documentation

Compass::Compass (  )  [inline]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines