refactoring: method name
This commit is contained in:
parent
6729347ac1
commit
6ec6b0b82a
|
@ -22,7 +22,7 @@ void initVbatt();
|
|||
void initMaf();
|
||||
void initMap();
|
||||
void initTps();
|
||||
void initOilPressure();
|
||||
void initFluidPressure();
|
||||
void initThermistors();
|
||||
void initCanSensors();
|
||||
void initLambda();
|
||||
|
@ -39,7 +39,7 @@ void initInputShaftSpeedSensor();
|
|||
void deinitVbatt();
|
||||
void deinitTps();
|
||||
void deinitThermistors();
|
||||
void deinitOilPressure();
|
||||
void deinitFluidPressure();
|
||||
void deInitFlexSensor();
|
||||
void deInitVehicleSpeedSensor();
|
||||
void deinitTurbochargerSpeedSensor();
|
||||
|
|
|
@ -51,7 +51,7 @@ static void initFluidPressure(LinearFunc& func, FunctionalSensor& sensor, const
|
|||
sensor.Register();
|
||||
}
|
||||
|
||||
void initOilPressure() {
|
||||
void initFluidPressure() {
|
||||
initFluidPressure(oilpSensorFunc, oilpSensor, engineConfiguration->oilPressure, 10);
|
||||
initFluidPressure(fuelPressureFuncLow, fuelPressureSensorLow, engineConfiguration->lowPressureFuel, 10);
|
||||
initFluidPressure(fuelPressureFuncHigh, fuelPressureSensorHigh, engineConfiguration->highPressureFuel, 100);
|
||||
|
@ -67,7 +67,7 @@ void initOilPressure() {
|
|||
injectorPressure.Register();
|
||||
}
|
||||
|
||||
void deinitOilPressure() {
|
||||
void deinitFluidPressure() {
|
||||
AdcSubscription::UnsubscribeSensor(oilpSensor);
|
||||
AdcSubscription::UnsubscribeSensor(fuelPressureSensorLow);
|
||||
AdcSubscription::UnsubscribeSensor(fuelPressureSensorHigh);
|
||||
|
|
|
@ -53,7 +53,7 @@ void initNewSensors() {
|
|||
initVbatt();
|
||||
initMap();
|
||||
initTps();
|
||||
initOilPressure();
|
||||
initFluidPressure();
|
||||
initThermistors();
|
||||
initLambda();
|
||||
initFlexSensor();
|
||||
|
@ -88,7 +88,7 @@ void stopSensors() {
|
|||
deInitOldAnalogInputs();
|
||||
|
||||
deinitTps();
|
||||
deinitOilPressure();
|
||||
deinitFluidPressure();
|
||||
deinitVbatt();
|
||||
deinitThermistors();
|
||||
deInitFlexSensor();
|
||||
|
@ -102,7 +102,7 @@ void stopSensors() {
|
|||
void reconfigureSensors() {
|
||||
initMap();
|
||||
initTps();
|
||||
initOilPressure();
|
||||
initFluidPressure();
|
||||
initVbatt();
|
||||
initThermistors();
|
||||
initFlexSensor();
|
||||
|
|
|
@ -171,7 +171,7 @@ TEST(SensorInit, OilPressure) {
|
|||
engineConfiguration->oilPressure.value1 = 0;
|
||||
engineConfiguration->oilPressure.value2 = 1000;
|
||||
|
||||
initOilPressure();
|
||||
initFluidPressure();
|
||||
|
||||
// Ensure the sensors were registered
|
||||
auto s = const_cast<Sensor*>(Sensor::getSensorOfType(SensorType::OilPressure));
|
||||
|
|
Loading…
Reference in New Issue