1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Configurable ADC internal sensor calibration values

There are MCUs without calibration values for VREFINT and temperature sensors.
Also changed adcTSSlopeK to signed, to handle negative slope case.
This commit is contained in:
jflyper 2018-11-07 17:39:01 +09:00
parent 0ad3fbb5fc
commit 37bee1dcbc
6 changed files with 18 additions and 7 deletions

View file

@ -60,5 +60,8 @@ void pgResetFn_adcConfig(adcConfig_t *adcConfig)
adcConfig->rssi.ioTag = IO_TAG(RSSI_ADC_PIN);
#endif
adcConfig->vrefIntCalibration = 0;
adcConfig->tempSensorCalibration1 = 0;
adcConfig->tempSensorCalibration2 = 0;
}
#endif // USE_ADC