N4 Flight Software N4
Flight software used for the N4 flight computers
|
Public Member Functions | |
MPU6050 (uint8_t address, uint32_t accel_fs_range, uint32_t gyro_fs_range) | |
uint8_t | init () |
float | readXAcceleration () |
float | readYAcceleration () |
float | readZAcceleration () |
float | readXAngularVelocity () |
float | readYAngularVelocity () |
float | readZAngularVelocity () |
float | readTemperature () |
void | filterImu () |
float | getRoll () |
float | getPitch () |
void MPU6050::filterImu | ( | ) |
perform sensor fusion perfom complementary filter to remove accelerometer high frequrecny noise remove low frequency noise from gyroscope and fuse the sensors
float MPU6050::getPitch | ( | ) |
compute the roll angle angle along the longitudinal axis return pitch angle in degrees
float MPU6050::getRoll | ( | ) |
compute the pitch angle angle along the transverse axis return roll angle in degrees
float MPU6050::readXAcceleration | ( | ) |
Read X axiS acceleration
float MPU6050::readYAcceleration | ( | ) |
Read Y acceleration
float MPU6050::readZAcceleration | ( | ) |
Read Z acceleration