APM:Libraries
Macros | Variables
CompassCalibrator.cpp File Reference
#include "CompassCalibrator.h"
#include <AP_HAL/AP_HAL.h>
#include <AP_Math/AP_GeodesicGrid.h>
Include dependency graph for CompassCalibrator.cpp:

Go to the source code of this file.

Macros

#define COMPASS_CAL_SAMPLE_SCALE_TO_FIXED(__X)   ((int16_t)constrain_float(roundf(__X*8.0f), INT16_MIN, INT16_MAX))
 
#define COMPASS_CAL_SAMPLE_SCALE_TO_FLOAT(__X)   (__X/8.0f)
 

Variables

const AP_HAL::HALhal
 

Macro Definition Documentation

◆ COMPASS_CAL_SAMPLE_SCALE_TO_FIXED

#define COMPASS_CAL_SAMPLE_SCALE_TO_FIXED (   __X)    ((int16_t)constrain_float(roundf(__X*8.0f), INT16_MIN, INT16_MAX))

Definition at line 685 of file CompassCalibrator.cpp.

Referenced by CompassCalibrator::CompassSample::set().

◆ COMPASS_CAL_SAMPLE_SCALE_TO_FLOAT

#define COMPASS_CAL_SAMPLE_SCALE_TO_FLOAT (   __X)    (__X/8.0f)

Definition at line 686 of file CompassCalibrator.cpp.

Referenced by CompassCalibrator::CompassSample::get().

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.