EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
imu_dcm.c File Reference

Detailed Description

Inertial Measurement Unit DCM matrix related routines.

Version
5.1.1

License

Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com

This file is licensed under the Silicon Labs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file imu_dcm.c.

#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include "thunderboard/imu/imu.h"

Go to the source code of this file.

Functions

void IMU_dcmGetAngles (float dcm[3][3], float angle[3])
 Calculates the Euler angles (roll, pitch, yaw) from the DCM matrix. More...
 
void IMU_dcmNormalize (float dcm[3][3])
 Normalizes the DCM matrix. More...
 
void IMU_dcmReset (float dcm[3][3])
 Sets the elements of the DCM matrixto the corresponding elements of the identity matrix. More...
 
void IMU_dcmResetZ (float dcm[3][3])
 DCM reset, Z direction. More...
 
void IMU_dcmRotate (float dcm[3][3], float angle[3])
 Rotates the DCM matrix by a given angle. More...