switch to teensy 3.0

This commit is contained in:
hg
2014-03-08 00:23:46 +01:00
parent 987be758ad
commit 89771e70d1
11 changed files with 269 additions and 207 deletions

View File

@ -17,7 +17,7 @@ const bool INFO = true;
const unsigned long DEFAULT_PERIOD = 1000;
const unsigned int NUM_OF_CHANNELS = 4;
const unsigned long N_MAX = 0xffffff;
const float R_REF = 6000.0;
const float R_REF = 6200.0;
const float PT1000_R0 = 1000.0;
const float PT1000_Coeff = 3.85e-3;
const unsigned long CONV_TIMEOUT = 0xfffff;
@ -56,7 +56,8 @@ public:
private:
Thermometer *m_thermometer;
bool m_enabled;
bool m_start_calibration;
bool m_start_highCalibration;
bool m_start_zeroCalibration;
float m_r_cal;
float m_preserved_alpha;
unsigned long m_preserved_period;
@ -92,7 +93,8 @@ private:
float m_alpha;
bool m_calibrationMode;
bool m_calibrationHighMode;
bool m_calibrationZeroMode;
void startSingleConv();
void prepareAdc();