mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +03:00
add ins gravity
This commit is contained in:
parent
bee6ac200a
commit
19894a5a80
8 changed files with 80 additions and 28 deletions
|
@ -465,11 +465,18 @@ void setConfigBatteryProfileAndWriteEEPROM(uint8_t profileIndex)
|
|||
beeperConfirmationBeeps(profileIndex + 1);
|
||||
}
|
||||
|
||||
void setCalibrationGyroAndWriteEEPROM(int16_t getGyroZero[XYZ_AXIS_COUNT]) {
|
||||
void setGyroCalibrationAndWriteEEPROM(int16_t getGyroZero[XYZ_AXIS_COUNT]) {
|
||||
gyroConfigMutable()->gyro_zero_cal[X] = getGyroZero[X];
|
||||
gyroConfigMutable()->gyro_zero_cal[Y] = getGyroZero[Y];
|
||||
gyroConfigMutable()->gyro_zero_cal[Z] = getGyroZero[Z];
|
||||
// save gyro calibration
|
||||
// save the calibration
|
||||
writeEEPROM();
|
||||
readEEPROM();
|
||||
}
|
||||
|
||||
void setGravityCalibrationAndWriteEEPROM(float getGravity) {
|
||||
gyroConfigMutable()->gravity_cmss_cal = getGravity;
|
||||
// save the calibration
|
||||
writeEEPROM();
|
||||
readEEPROM();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue