rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
init_fuel_level.cpp
Go to the documentation of this file.
1#include "pch.h"
2
3#include "adc_subscription.h"
4#include "fuel_level_sensor.h"
5
6static FuelLevelSensor fuelSensor(SensorType::FuelLevel, /* timeout = */ MS2NT(500));
7
10
12 return;
13 }
14
15 // noisy data from fuel tank slosh is handled on an higher level
16 AdcSubscription::SubscribeSensor(fuelSensor, channel, /*lowpassCutoff =*/ 100);
18}
bool isAdcChannelValid(adc_channel_e hwChannel)
Definition adc_inputs.h:23
uint16_t channel
Definition adc_inputs.h:104
static AdcSubscriptionEntry * SubscribeSensor(FunctionalSensorBase &sensor, adc_channel_e channel, float lowpassCutoffHZ, float voltsPerAdcVolt=0.0f)
bool Register()
Definition sensor.cpp:131
static constexpr engine_configuration_s * engineConfiguration
static FuelLevelSensor fuelSensor(SensorType::FuelLevel, MS2NT(500))
void initFuelLevel()