Acceleration_Sensor Class Reference
#include <acceleration_sensor.hpp>
Inheritance diagram for Acceleration_Sensor:

Collaboration diagram for Acceleration_Sensor:

Public Member Functions | |
bool | init () |
Initializes the sensor. More... | |
int16_t | getX () |
int16_t | getY () |
int16_t | getZ () |
Friends | |
class | SingletonTemplate< Acceleration_Sensor > |
Friend class used for Singleton Template. More... | |
Additional Inherited Members | |
![]() | |
static Acceleration_Sensor & | getInstance () |
Public member to get instance of this SINGLETON class. More... | |
![]() | |
SingletonTemplate () | |
![]() | |
static SingletonTemplate * | mpSingletonInstance |
Detailed Description
Acceleration Sensor class used to get acceleration data reading from the on-board sensor. Acceleration data reading can provide absolute tilt of the board (if under no movement), and it can also provide the movement activity of the board.
Member Function Documentation
int16_t Acceleration_Sensor::getX | ( | ) |
- Returns
- X-Axis value
int16_t Acceleration_Sensor::getY | ( | ) |
- Returns
- Y-Axis value
int16_t Acceleration_Sensor::getZ | ( | ) |
- Returns
- Z-Axis value
bool Acceleration_Sensor::init | ( | void | ) |
Initializes the sensor.
Friends And Related Function Documentation
|
friend |
Friend class used for Singleton Template.
The documentation for this class was generated from the following files:
- /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L4_IO/acceleration_sensor.hpp
- /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L4_IO/src/io_source.cpp