only:thermistor_t
This commit is contained in:
parent
f8d06bef2a
commit
45982819c9
|
@ -9,6 +9,8 @@
|
||||||
|
|
||||||
#include "generated_lookup_engine_configuration.h"
|
#include "generated_lookup_engine_configuration.h"
|
||||||
#include "sensor_converter_func.h"
|
#include "sensor_converter_func.h"
|
||||||
|
#include "resistance_func.h"
|
||||||
|
#include "func_chain.h"
|
||||||
|
|
||||||
class ThermistorFunc final : public SensorConverter {
|
class ThermistorFunc final : public SensorConverter {
|
||||||
public:
|
public:
|
||||||
|
@ -23,3 +25,8 @@ public:
|
||||||
float m_b = 0;
|
float m_b = 0;
|
||||||
float m_c = 0;
|
float m_c = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using resist = ResistanceFunc;
|
||||||
|
using therm = ThermistorFunc;
|
||||||
|
|
||||||
|
typedef FuncChain<resist, therm> thermistor_t;
|
||||||
|
|
|
@ -2,18 +2,13 @@
|
||||||
|
|
||||||
#include "adc_subscription.h"
|
#include "adc_subscription.h"
|
||||||
#include "functional_sensor.h"
|
#include "functional_sensor.h"
|
||||||
#include "func_chain.h"
|
|
||||||
#include "linear_func.h"
|
#include "linear_func.h"
|
||||||
#include "resistance_func.h"
|
|
||||||
#include "thermistor_func.h"
|
#include "thermistor_func.h"
|
||||||
|
|
||||||
using resist = ResistanceFunc;
|
|
||||||
using therm = ThermistorFunc;
|
|
||||||
|
|
||||||
// Each one could be either linear or thermistor
|
// Each one could be either linear or thermistor
|
||||||
struct FuncPair {
|
struct FuncPair {
|
||||||
LinearFunc linear;
|
LinearFunc linear;
|
||||||
FuncChain<resist, therm> thermistor;
|
thermistor_t thermistor;
|
||||||
};
|
};
|
||||||
|
|
||||||
static CCM_OPTIONAL FunctionalSensor clt(SensorType::Clt, MS2NT(10));
|
static CCM_OPTIONAL FunctionalSensor clt(SensorType::Clt, MS2NT(10));
|
||||||
|
|
Loading…
Reference in New Issue