Sets ticks directly for heater test
Diff: Heater.h
- Revision:
- 4:29ffcc7b410e
- Parent:
- 3:313711a66929
- Child:
- 5:21442d9d19c5
- Child:
- 6:71d9c10fca4a
diff -r 313711a66929 -r 29ffcc7b410e Heater.h --- a/Heater.h Wed Jul 17 20:46:20 2019 +0000 +++ b/Heater.h Thu Jul 18 12:17:42 2019 +0000 @@ -10,8 +10,8 @@ #include "mbed.h" #include "ADS8568_ADC.h" -#define MEAS_DELAY 10 // measurement delay for ADC -#define N_ROLL_AVG 3 // rolling average for R values +#define MEAS_DELAY 50 // measurement delay for ADC +#define N_ROLL_AVG 2 // rolling average for R values #define ALL_CH 15 //value of convst bus to read all chanels simultaneosly class Heater @@ -30,7 +30,8 @@ void read(); void hold(int hold_time); - void ramp_R(int ramp_time, float R_final, float R_start = 1.0); + void ramp_R(int ramp_time, float R_final, float R_start); + void ramp_T(int ramp_time, float T_final, float T_start); //Conversions between temperature and resistance float R_to_T(float R);