moving confusing around
This commit is contained in:
parent
539e025a0d
commit
2144afe405
|
@ -13,21 +13,21 @@ case SensorType::AcceleratorPedalPrimary:
|
|||
return "AcceleratorPedalPrimary";
|
||||
case SensorType::AcceleratorPedalSecondary:
|
||||
return "AcceleratorPedalSecondary";
|
||||
case SensorType::Aux1:
|
||||
case SensorType::AuxAnalog1:
|
||||
return "Aux1";
|
||||
case SensorType::Aux2:
|
||||
case SensorType::AuxAnalog2:
|
||||
return "Aux2";
|
||||
case SensorType::Aux3:
|
||||
case SensorType::AuxAnalog3:
|
||||
return "Aux3";
|
||||
case SensorType::Aux4:
|
||||
case SensorType::AuxAnalog4:
|
||||
return "Aux4";
|
||||
case SensorType::Aux5:
|
||||
case SensorType::AuxAnalog5:
|
||||
return "Aux5";
|
||||
case SensorType::Aux6:
|
||||
case SensorType::AuxAnalog6:
|
||||
return "Aux6";
|
||||
case SensorType::Aux7:
|
||||
case SensorType::AuxAnalog7:
|
||||
return "Aux7";
|
||||
case SensorType::Aux8:
|
||||
case SensorType::AuxAnalog8:
|
||||
return "Aux8";
|
||||
case SensorType::AuxLinear1:
|
||||
return "AuxLinear1";
|
||||
|
|
|
@ -69,14 +69,15 @@ enum class SensorType : unsigned char {
|
|||
|
||||
FuelLevel,
|
||||
|
||||
Aux1,
|
||||
Aux2,
|
||||
Aux3,
|
||||
Aux4,
|
||||
Aux5,
|
||||
Aux6,
|
||||
Aux7,
|
||||
Aux8,
|
||||
// auxiliary analog voltage inputs for Lua
|
||||
AuxAnalog1,
|
||||
AuxAnalog2,
|
||||
AuxAnalog3,
|
||||
AuxAnalog4,
|
||||
AuxAnalog5,
|
||||
AuxAnalog6,
|
||||
AuxAnalog7,
|
||||
AuxAnalog8,
|
||||
|
||||
VehicleSpeed,
|
||||
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
// These aux sensors just read voltage - so the converter function has nothing to do
|
||||
|
||||
static FunctionalSensor auxSensors[] = {
|
||||
{ SensorType::Aux1, MS2NT(50) },
|
||||
{ SensorType::Aux2, MS2NT(50) },
|
||||
{ SensorType::Aux3, MS2NT(50) },
|
||||
{ SensorType::Aux4, MS2NT(50) },
|
||||
{ SensorType::Aux5, MS2NT(50) },
|
||||
{ SensorType::Aux6, MS2NT(50) },
|
||||
{ SensorType::Aux7, MS2NT(50) },
|
||||
{ SensorType::Aux8, MS2NT(50) },
|
||||
{ SensorType::AuxAnalog1, MS2NT(50) },
|
||||
{ SensorType::AuxAnalog2, MS2NT(50) },
|
||||
{ SensorType::AuxAnalog3, MS2NT(50) },
|
||||
{ SensorType::AuxAnalog4, MS2NT(50) },
|
||||
{ SensorType::AuxAnalog5, MS2NT(50) },
|
||||
{ SensorType::AuxAnalog6, MS2NT(50) },
|
||||
{ SensorType::AuxAnalog7, MS2NT(50) },
|
||||
{ SensorType::AuxAnalog8, MS2NT(50) },
|
||||
};
|
||||
|
||||
static_assert(efi::size(auxSensors) == AUX_ANALOG_INPUT_COUNT);
|
||||
|
|
Loading…
Reference in New Issue