|
| enum | : uint8_t { kDefaultDeviceI2cAddress = 0x68
} |
| | Default I2C device address for the MPU6050.
|
| |
◆ Mpu6050()
| Mpu6050::Mpu6050 |
( |
uint8_t |
device_i2c_address = kDefaultDeviceI2cAddress | ) |
|
|
explicit |
Constructor.
- Parameters
-
| device_i2c_address | The I2C device address for the MPU6050. |
◆ GetAcceleration()
Gets the acceleration values.
- Returns
- Acceleration in x, y, and z directions.
◆ GetEuler()
Gets the Euler angles.
- Returns
- Euler angles (yaw, pitch, and roll).
◆ Setup()
Sets up the MPU6050.
- Returns
- true if setup is successful, false otherwise.
◆ UpdateMotionInfo()
| bool Mpu6050::UpdateMotionInfo |
( |
| ) |
|
Updates information from fifo data of mpu6050.
- Returns
- true if the update is successful, false otherwise.
The documentation for this class was generated from the following files: