Alora Library
Library for using Alora shield
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Private Attributes | List of all members
AloraIMULSM9DS1Adapter Class Reference
Inheritance diagram for AloraIMULSM9DS1Adapter:
AloraIMUSensorBase

Public Member Functions

virtual bool begin (uint8_t accAddress, uint8_t magAddress)
 
virtual float readAccelX ()
 Read X axis value from accelerometer. More...
 
virtual float readAccelY ()
 Read Y axis value from accelerometer. More...
 
virtual float readAccelZ ()
 Read Z axis value from accelerometer. More...
 
virtual float readGyroX ()
 Read X axis value from gyroscope. More...
 
virtual float readGyroY ()
 Read Y axis value from gyroscope. More...
 
virtual float readGyroZ ()
 Read Z axis value from gyroscope. More...
 
virtual float readMagX ()
 Read X axis value from magnetometer. More...
 
virtual float readMagY ()
 Read Y axis value from magnetometer. More...
 
virtual float readMagZ ()
 Read Z axis value from magnetometer. More...
 
virtual float readMagHeading ()
 Read heading value from magnetometer. More...
 
LSM9DS1 * getIMUSensor ()
 Get pointer to LSM9DS1 object. More...
 

Private Attributes

LSM9DS1 * imuSensor
 

Member Function Documentation

bool AloraIMULSM9DS1Adapter::begin ( uint8_t  accAddress,
uint8_t  magAddress 
)
virtual
Parameters
accAddressaccelerometer and gyroscope (if any) I2C address
magAddressmagnetometer I2C address
Returns
true if IMU sensor is initialized successfully
false if IMU sensor is not initialized

Implements AloraIMUSensorBase.

LSM9DS1 * AloraIMULSM9DS1Adapter::getIMUSensor ( )

Get pointer to LSM9DS1 object.

Returns
LSM9DS1* pointer to LSM9DS1 object
float AloraIMULSM9DS1Adapter::readAccelX ( )
virtual

Read X axis value from accelerometer.

Returns
float X axis value

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readAccelY ( )
virtual

Read Y axis value from accelerometer.

Returns
float Y axis value

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readAccelZ ( )
virtual

Read Z axis value from accelerometer.

Returns
float Z axis value

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readGyroX ( )
virtual

Read X axis value from gyroscope.

Returns
float X axis value

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readGyroY ( )
virtual

Read Y axis value from gyroscope.

Returns
float Y axis value

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readGyroZ ( )
virtual

Read Z axis value from gyroscope.

Returns
float Z axis value

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readMagHeading ( )
virtual

Read heading value from magnetometer.

Returns
float heading in degree unit

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readMagX ( )
virtual

Read X axis value from magnetometer.

Returns
float X axis value

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readMagY ( )
virtual

Read Y axis value from magnetometer.

Returns
float Y axis value

Implements AloraIMUSensorBase.

float AloraIMULSM9DS1Adapter::readMagZ ( )
virtual

Read Z axis value from magnetometer.

Returns
float Z axis value

Implements AloraIMUSensorBase.

Member Data Documentation

LSM9DS1* AloraIMULSM9DS1Adapter::imuSensor
private

LSM9DS1 object pointer


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