@@ -90,11 +90,6 @@ void adcSingleRead()
|
||||
adcValues[7] = ADC->ADC_CDR14;
|
||||
adcValues[8] = ADC->ADC_CDR8 ;
|
||||
|
||||
temperature = (((int32_t)temperature * 7) + ((((int32_t)ADC->ADC_CDR15 - 838) * 621) >> 11)) >> 3; // Filter it
|
||||
if (get_tmr10ms() >= 100 && temperature > maxTemperature) {
|
||||
maxTemperature = temperature;
|
||||
}
|
||||
|
||||
// adc direction correct
|
||||
#if defined(FRSKY_STICKS)
|
||||
uint32_t i ;
|
||||
|
||||
@@ -438,11 +438,6 @@ uint16_t getCurrent()
|
||||
return (current_scale * Current) / 8192;
|
||||
}
|
||||
|
||||
uint8_t getTemperature()
|
||||
{
|
||||
return temperature + g_eeGeneral.temperatureCalib;
|
||||
}
|
||||
|
||||
#define STICK_LV_GAIN 0x01
|
||||
#define STICK_LH_GAIN 0x02
|
||||
#define STICK_RV_GAIN 0x04
|
||||
|
||||
@@ -199,10 +199,6 @@ void usbMassStorage();
|
||||
void configure_pins( uint32_t pins, uint16_t config );
|
||||
uint16_t getCurrent();
|
||||
|
||||
extern uint8_t temperature ; // Raw temp reading
|
||||
extern uint8_t maxTemperature ; // Raw temp reading
|
||||
uint8_t getTemperature();
|
||||
|
||||
extern uint16_t Current_analogue;
|
||||
extern uint16_t Current_max;
|
||||
extern uint32_t Current_accumulator;
|
||||
|
||||
Reference in New Issue
Block a user