20 #ifndef ROVERAPI_ROVER_GY521_HPP_ 21 #define ROVERAPI_ROVER_GY521_HPP_ 58 explicit RoverGY521 (
const int custom_i2c_address);
RoverGY521()
Default Constructor for the RoverGY521 class.
Definition: rover_gy521.cpp:39
RoverSensor class is an abstract class to define interface between common sensors used in the rover...
Definition: rover_sensor.hpp:48
float read(void)
Non implemented function.
Definition: rover_gy521.cpp:227
int8_t getAccelZ(void)
Returns accelerometer output for Z-axis.
Definition: rover_gy521.cpp:151
int ROVERGY521_SETUP_
Flag to hold if RoverGY521 is initialized or not.
Definition: rover_gy521.hpp:40
int8_t getAccelY(void)
Returns accelerometer output for Y-axis.
Definition: rover_gy521.cpp:135
float getAngleZ(void)
Returns angle in the Z-axis.
Definition: rover_gy521.cpp:207
void initialize(void)
Function to setup RoverGY521 sensor.
Definition: rover_gy521.cpp:55
int8_t getAccelX(void)
Returns accelerometer output for X-axis.
Definition: rover_gy521.cpp:119
rover Namespace contains classes to manage Rover sensors, gpio, buzzer, buttons, driving, utilities, and cloud.
Definition: rover_api.hpp:293
int i2CAddress
I2C address for overriding.
Definition: rover_gy521.hpp:45
int8_t getGyroZ(void)
Returns gyroscope output for Z-axis.
Definition: rover_gy521.cpp:103
float getAngleY(void)
Returns angle in the Y-axis.
Definition: rover_gy521.cpp:187
float getAngleX(void)
Returns angle in the X-axis.
Definition: rover_gy521.cpp:167
~RoverGY521()
Destructor for the RoverGY521 class.
Definition: rover_gy521.cpp:53
int8_t getGyroX(void)
Returns gyroscope output for X-axis.
Definition: rover_gy521.cpp:71
RoverGY521 is a class that is inherited from RoverSensor abstract class. RoverGY521 class contains me...
Definition: rover_gy521.hpp:34
int8_t getGyroY(void)
Returns gyroscope output for Y-axis.
Definition: rover_gy521.cpp:87