Luisa Chiu Portfolio
BNO055.BNO055 Class Reference

An orientation sensor driver class for the BNO055 from Bosch Sensortec. More...

Public Member Functions

def __init__ (self, i2c, calib_IMU_flag)
 Constructs an orientation sensor driver object. More...
 
def set_operating (self)
 Sets operating mode.
 
def get_calib_status (self)
 Gets calibration status of the i2c.
 
def get_calib_coef (self)
 Gets calibration coefficients of the i2c.
 
def set_calib_coef (self)
 Sets calibration status of the i2c.
 
def euler_angle (self)
 Obtains and returns euler angles measured by the i2c.
 
def angular_vel (self)
 Obtains and returns angular velocity measured by the i2c.
 

Public Attributes

 i2c
 A two-wire protocol for communicating between devices. More...
 
 calib_coefs
 An array filled with calibration coefficients read by the i2c. More...
 
 calib_IMU_flag
 A boolean flag used to start IMU calibration. More...
 

Detailed Description

An orientation sensor driver class for the BNO055 from Bosch Sensortec.

Objects of this class can be used to configure the BNO055 orientation sensor driver and to create an object of the BNO055 class which can be used to perform orientation sensor control.

Constructor & Destructor Documentation

◆ __init__()

def BNO055.BNO055.__init__ (   self,
  i2c,
  calib_IMU_flag 
)

Constructs an orientation sensor driver object.

The orientation sensor driver object is created from the i2c class. It is used to calibrate the IMU and find angle and angular velocity.

Parameters
i2cA two-wire protocol for communicating between devices.
calib_IMU_flagA boolean flag used to enable IMU calibration

Member Data Documentation

◆ calib_coefs

BNO055.BNO055.calib_coefs

An array filled with calibration coefficients read by the i2c.

Defines a variable that specifies the calibration coefficients array.

◆ calib_IMU_flag

BNO055.BNO055.calib_IMU_flag

A boolean flag used to start IMU calibration.

Works with the task IMU and user interface to do IMU calibration

◆ i2c

BNO055.BNO055.i2c

A two-wire protocol for communicating between devices.

Defines a variable that specifies the i2c class


The documentation for this class was generated from the following file: