1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Fixed ADC current meter for negative offset.

This commit is contained in:
mikeller 2017-03-30 01:35:55 +13:00
parent 13da4de774
commit b71a5a808f

View file

@ -63,7 +63,7 @@ typedef struct currentMeterADCState_s {
typedef struct currentSensorADCConfig_s {
int16_t scale; // scale the current sensor output voltage to milliamps. Value in 1/10th mV/A
uint16_t offset; // offset of the current sensor in millivolt steps
int16_t offset; // offset of the current sensor in millivolt steps
} currentSensorADCConfig_t;
PG_DECLARE(currentSensorADCConfig_t, currentSensorADCConfig);