only:thermistor_t

This commit is contained in:
rusEFI LLC 2024-06-19 18:47:46 -04:00
parent f8d06bef2a
commit 45982819c9
2 changed files with 8 additions and 6 deletions

View File

@ -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;

View File

@ -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));