Extra Modules
Simple AHRS
Simple attitude and heading reference system module can return pitch and roll angles using acceleration value. Include mpu925x_simple_ahrs.h
in desired source file and compile mpu925x_simple_ahrs.c
source file with target program.
#include "mpu925x.h"
#include "mpu925x_simple_ahrs.h"
// Create struct instances.
mpu925x_t mpu925x;
mpu925x_simple_ahrs ahrs;
// Initialize driver.
mpu925x_init(&mpu925x, 0);
// Get values.
mpu925x_get_acceleration(&mpu925x);
mpu925x_get_simple_ahrs(&mpu925x, &ahrs);
printf("Pitch: %f, Roll: %f\n", ahrs.pitch, ahrs.roll);
API Reference
Simple AHRS header file for MPU-925X driver.
- Author
Ceyhun Şen
Typedefs
- typedef struct mpu925x_simple_ahrs mpu925x_simple_ahrs
Pitch and roll angles for simple AHRS.
Functions
- void mpu925x_get_simple_ahrs(mpu925x_t *mpu925x, mpu925x_simple_ahrs *ahrs)
Get pitch and roll angles.
- Parameters
mpu925x – MPU-925X struct pointer.
ahrs – Simple AHRS struct pointer.
- struct mpu925x_simple_ahrs
#include <mpu925x_simple_ahrs.h>Pitch and roll angles for simple AHRS.
- project
mpu925x-driver