Public Member Functions | Public Attributes

Compass Class Reference

#include <Compass.h>

Inherited by AP_Compass_HIL, and AP_Compass_HMC5843.

List of all members.

Public Member Functions

virtual bool init (int initialise_wire_lib=1)
virtual void read ()
virtual void calculate (float roll, float pitch)
virtual void set_orientation (const Matrix3f &rotation_matrix)
virtual void set_offsets (int x, int y, int z)
virtual void set_declination (float radians)

Public Attributes

int mag_x
int mag_y
int mag_z
float heading
float heading_x
float heading_y
unsigned long last_update

Detailed Description

Definition at line 7 of file Compass.h.


Member Function Documentation

virtual void Compass::calculate ( float  roll,
float  pitch 
) [virtual]

Reimplemented in AP_Compass_HIL, and AP_Compass_HMC5843.

virtual bool Compass::init ( int  initialise_wire_lib = 1  )  [virtual]

Reimplemented in AP_Compass_HIL, and AP_Compass_HMC5843.

virtual void Compass::read (  )  [virtual]

Reimplemented in AP_Compass_HIL, and AP_Compass_HMC5843.

virtual void Compass::set_declination ( float  radians  )  [virtual]

Reimplemented in AP_Compass_HIL, and AP_Compass_HMC5843.

virtual void Compass::set_offsets ( int  x,
int  y,
int  z 
) [virtual]

Reimplemented in AP_Compass_HIL, and AP_Compass_HMC5843.

virtual void Compass::set_orientation ( const Matrix3f rotation_matrix  )  [virtual]

Reimplemented in AP_Compass_HIL, and AP_Compass_HMC5843.


Member Data Documentation

Definition at line 13 of file Compass.h.

Definition at line 14 of file Compass.h.

Definition at line 15 of file Compass.h.

unsigned long Compass::last_update

Definition at line 16 of file Compass.h.

Definition at line 10 of file Compass.h.

Definition at line 11 of file Compass.h.

Definition at line 12 of file Compass.h.


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