22#include "stm32f4xx_hal.h"
37 enum class REG: uint8_t{
47 bool readCalibStatus(uint8_t& sys, uint8_t& gyro, uint8_t& accel, uint8_t&mag);
96 bool writeByte(uint8_t reg, uint8_t value);
97 bool readLen(uint8_t reg, uint8_t* buffer, uint8_t len);
int16_t getRoll()
Function allows for the user to get the current roll value.
Definition bno055.cpp:117
int16_t pitch
Definition bno055.h:69
bool writeByte(uint8_t reg, uint8_t value)
Function writes values to the specified register given by the user.
Definition bno055.cpp:155
bool updateEuler()
Function Updates the Euler values based on the IMU's current readings. Roll Pitch,...
Definition bno055.cpp:66
REG
Enumerated class REG of the IMU modes that will be used.
Definition bno055.h:37
@ CONFIG_MODE
Definition bno055.h:38
@ NDOF
Definition bno055.h:40
@ IMU
Definition bno055.h:39
int16_t getPitch()
Function allows for the user to get the current pitch value.
Definition bno055.cpp:125
bool init_imu(REG mode=REG::NDOF)
Function handles the configuration and initialization of the BNO055 IMU.
Definition bno055.cpp:44
int16_t getYaw()
Function allows for the user to get the current yaw value.
Definition bno055.cpp:109
BNO055(I2C_HandleTypeDef *hi2c, uint8_t addr=0x28)
Constructor Function to initialize the BNO055 Class.
Definition bno055.cpp:35
bool readCalibStatus(uint8_t &sys, uint8_t &gyro, uint8_t &accel, uint8_t &mag)
Function Checks the Calibration status of the IMU and individual sensors.
Definition bno055.cpp:137
int16_t gyroY
Definition bno055.h:89
int16_t gyroZ
Definition bno055.h:94
bool readLen(uint8_t reg, uint8_t *buffer, uint8_t len)
Function reads the current value of the specified register given by the user.
Definition bno055.cpp:166
int16_t gyroX
Definition bno055.h:84
int16_t yaw
Definition bno055.h:74
int16_t roll
Definition bno055.h:79
int16_t getYawRateZ()
Function allows users to retrieve the yaw rate around the Z axis.
Definition bno055.cpp:101
bool updateGyro()
Function pull they data from the gyroscope retrieving angular velocities.
Definition bno055.cpp:85
I2C_HandleTypeDef * hi2c
Definition bno055.h:59
uint8_t addr
Definition bno055.h:64