Protected Member Functions | Protected Attributes

Compass3Axis Class Reference

3 axis compass More...

#include <compass3Axis.h>

Inheritance diagram for Compass3Axis:
Compass Module HMC5843

List of all members.

Protected Member Functions

void CalculateHeading ()

Protected Attributes

Socket16 m_axes [MAX_AXES]
Parameter16 m_offsets [MAX_AXES]
ParameterF m_rotation
PlugF imuPitch
PlugF imuRoll
MultiFilterRef< 1 > m_filter

Detailed Description

3 axis compass

Tilt compensated magnetometer based compass. All magnetometer compasses should be based on this class

/**
Sockets exposed:

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 and board orientation

external sockets expected:

AHRS.pitch needed for tilt correction
AHRS.roll


Member Function Documentation

void Compass3Axis::CalculateHeading (  )  [inline, protected]

Member Data Documentation

PlugF Compass3Axis::imuPitch [protected]
PlugF Compass3Axis::imuRoll [protected]
Socket16 Compass3Axis::m_axes[MAX_AXES] [protected]
Parameter16 Compass3Axis::m_offsets[MAX_AXES] [protected]

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