APM:Libraries
Classes | Namespaces | Macros | Functions
AP_Compass.h File Reference
#include <inttypes.h>
#include <AP_Common/AP_Common.h>
#include <AP_Declination/AP_Declination.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_Math/AP_Math.h>
#include <AP_Param/AP_Param.h>
#include <GCS_MAVLink/GCS_MAVLink.h>
#include <AP_BattMonitor/AP_BattMonitor.h>
#include "CompassCalibrator.h"
#include "AP_Compass_Backend.h"
#include "Compass_PerMotor.h"
Include dependency graph for AP_Compass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Compass
 
struct  Compass::mag_state
 

Namespaces

 AP
 

Macros

#define AP_COMPASS_MOT_COMP_DISABLED   0x00
 
#define AP_COMPASS_MOT_COMP_THROTTLE   0x01
 
#define AP_COMPASS_MOT_COMP_CURRENT   0x02
 
#define AP_COMPASS_MOT_COMP_PER_MOTOR   0x03
 
#define AP_COMPASS_CALIBRATION_FITNESS_DEFAULT   16.0f
 
#define AP_COMPASS_MAX_XYZ_ANG_DIFF   radians(90.0f)
 
#define AP_COMPASS_MAX_XY_ANG_DIFF   radians(60.0f)
 
#define AP_COMPASS_MAX_XY_LENGTH_DIFF   200.0f
 
#define COMPASS_MAX_INSTANCES   3
 
#define COMPASS_MAX_BACKEND   3
 

Functions

CompassAP::compass ()
 

Macro Definition Documentation

◆ AP_COMPASS_CALIBRATION_FITNESS_DEFAULT

#define AP_COMPASS_CALIBRATION_FITNESS_DEFAULT   16.0f

Definition at line 37 of file AP_Compass.h.

◆ AP_COMPASS_MAX_XY_ANG_DIFF

#define AP_COMPASS_MAX_XY_ANG_DIFF   radians(60.0f)

Definition at line 39 of file AP_Compass.h.

Referenced by Compass::consistent().

◆ AP_COMPASS_MAX_XY_LENGTH_DIFF

#define AP_COMPASS_MAX_XY_LENGTH_DIFF   200.0f

Definition at line 40 of file AP_Compass.h.

Referenced by Compass::consistent().

◆ AP_COMPASS_MAX_XYZ_ANG_DIFF

#define AP_COMPASS_MAX_XYZ_ANG_DIFF   radians(90.0f)

Definition at line 38 of file AP_Compass.h.

Referenced by Compass::consistent().

◆ AP_COMPASS_MOT_COMP_CURRENT

#define AP_COMPASS_MOT_COMP_CURRENT   0x02

◆ AP_COMPASS_MOT_COMP_DISABLED

#define AP_COMPASS_MOT_COMP_DISABLED   0x00

Definition at line 18 of file AP_Compass.h.

◆ AP_COMPASS_MOT_COMP_PER_MOTOR

#define AP_COMPASS_MOT_COMP_PER_MOTOR   0x03

Definition at line 21 of file AP_Compass.h.

◆ AP_COMPASS_MOT_COMP_THROTTLE

#define AP_COMPASS_MOT_COMP_THROTTLE   0x01

Definition at line 19 of file AP_Compass.h.

Referenced by AP_Compass_Backend::correct_field(), and Compass::set_throttle().

◆ COMPASS_MAX_BACKEND

#define COMPASS_MAX_BACKEND   3

Definition at line 47 of file AP_Compass.h.

Referenced by Compass::_add_backend(), Compass::_detect_backends(), and Compass::Compass().

◆ COMPASS_MAX_INSTANCES

#define COMPASS_MAX_INSTANCES   3