Koduino
Public Member Functions | List of all members

MPU6000 hardware interface library. More...

#include <MPU6000.h>

Detailed Description

MPU6000 hardware interface library.

Public Member Functions

 MPU6000 (SPIClass &theSPI)
 Construct with reference to which SPI. More...
 
bool init (uint8_t csPin)
 Call to initialize MPU6000 and start getting data. More...
 
virtual void readSensors ()
 Read IMU hardware and set acc, gyr in units of m/s^2 and rad/s. More...
 

Inherits IMU.

Constructor & Destructor Documentation

MPU6000::MPU6000 ( SPIClass theSPI)
inline

Construct with reference to which SPI.

Parameters
theSPISPI, SPI_2, etc.

Member Function Documentation

bool MPU6000::init ( uint8_t  csPin)

Call to initialize MPU6000 and start getting data.

Parameters
csPinChip select pin
Returns
true if successful

Copyright (C) Ghost Robotics - All Rights Reserved Unauthorized copying of this file, via any medium is strictly prohibited Proprietary and confidential Written by Avik De avik@.nosp@m.ghos.nosp@m.trobo.nosp@m.tics.nosp@m..io

void MPU6000::readSensors ( )
virtual

Read IMU hardware and set acc, gyr in units of m/s^2 and rad/s.

This function must be implemented by derived classes

Implements IMU.


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