add calculations of T & P by ADC; Release mode still have problems

This commit is contained in:
Edward Emelianov
2023-05-15 22:58:39 +03:00
parent a67da85f55
commit 54155fdca9
10 changed files with 127 additions and 24 deletions

View File

@@ -47,7 +47,14 @@
// starting index of ADC2
#define ADC2START (9*NUMBER_OF_ADC1_CHANNELS)
// ADC level for not connected TRD
#define ADC_NOCONN (4000)
void adc_setup();
float getMCUtemp();
uint16_t getADCval(int nch);
float getADCvoltage(int nch);
float getADCvoltage(uint16_t ADCval);
float calcR(uint16_t ADCval);
float calcT(uint16_t ADCval);
float calcPres5050();