29#include "pprzlink/messages.h"
31#include "generated/airframe.h"
35#define IST8310_CHAN_X 1
38#define IST8310_CHAN_Y 0
41#define IST8310_CHAN_Z 2
43#ifndef IST8310_CHAN_X_SIGN
44#define IST8310_CHAN_X_SIGN +
46#ifndef IST8310_CHAN_Y_SIGN
47#define IST8310_CHAN_Y_SIGN +
49#ifndef IST8310_CHAN_Z_SIGN
50#define IST8310_CHAN_Z_SIGN +
59#if MODULE_IST8310_UPDATE_AHRS && defined(IST8310_MAG_TO_IMU_PHI) && defined(IST8310_MAG_TO_IMU_THETA) && defined(IST8310_MAG_TO_IMU_PSI)
82#if MODULE_IST8310_UPDATE_AHRS
95#if MODULE_IST8310_SYNC_SEND
98#if MODULE_IST8310_UPDATE_AHRS || MODULE_IST8310_SYNC_SEND
Main include for ABI (AirBorneInterface).
#define MAG_IST8310_SENDER_ID
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Common code for AP and FBW telemetry.
#define ANGLE_BFP_OF_REAL(_af)
#define int32_rmat_of_eulers
Rotation matrix from Euler angles.
void imu_set_defaults_mag(uint8_t abi_id, const struct Int32RMat *imu_to_sensor, const struct Int32Vect3 *neutral, const struct Int32Vect3 *scale)
Set the defaults for a mag sensor WARNING: Should be called before sensor is publishing messages to e...
void ist8310_event(struct IST8310 *ist)
void ist8310_init(struct IST8310 *ist, struct i2c_periph *i2c_p, uint8_t addr)
Initialize IST8310 struct.
static void ist8310_periodic(struct IST8310 *ist)
convenience function: read or start configuration if not already initialized
volatile bool data_available
data ready flag
Default IST8310 structure.
#define IST8310_CHAN_Z_SIGN
void mag_ist8310_report(void)
struct IST8310 mag_ist8310
#define IST8310_CHAN_X_SIGN
#define IST8310_CHAN_Y_SIGN
void mag_ist8310_module_event(void)
void mag_ist8310_module_periodic(void)
void mag_ist8310_module_init(void)
Module wrapper for Isentek IST8310 magnetometers.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
int int32_t
Typedef defining 32 bit int type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.