mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +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:
parent
0ad3fbb5fc
commit
37bee1dcbc
6 changed files with 18 additions and 7 deletions
|
@ -37,6 +37,10 @@ typedef struct adcConfig_s {
|
|||
adcChannelConfig_t current;
|
||||
adcChannelConfig_t external1;
|
||||
int8_t device; // ADCDevice
|
||||
|
||||
uint16_t vrefIntCalibration;
|
||||
uint16_t tempSensorCalibration1;
|
||||
uint16_t tempSensorCalibration2;
|
||||
} adcConfig_t;
|
||||
|
||||
PG_DECLARE(adcConfig_t, adcConfig);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue