NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
compass.h File Reference
#include "drivers/compass.h"
#include "../common/axis.h"
#include "../config/sensors.h"
#include "../config/compass.h"
Include dependency graph for compass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ins_mag
 

Functions

void ins_mag_init (struct ins_mag *self, const struct mag_config *config, const struct sensor_trims_config *trims)
 
void ins_mag_process_sample (struct ins_mag *self, int32_t x, int32_t y, int32_t z)
 
void ins_mag_save_trims (const struct ins_mag *self, struct config *config)
 
void ins_mag_start_calibration (struct ins_mag *self)
 

Function Documentation

void ins_mag_init ( struct ins_mag self,
const struct mag_config config,
const struct sensor_trims_config trims 
)
void ins_mag_process_sample ( struct ins_mag self,
int32_t  x,
int32_t  y,
int32_t  z 
)
void ins_mag_save_trims ( const struct ins_mag self,
struct config config 
)
void ins_mag_start_calibration ( struct ins_mag self)