raw aux inputs gauges fix #4346
This commit is contained in:
parent
7123361f2e
commit
d586a7dc9c
|
@ -25,6 +25,9 @@ Release template (copy/paste this for new release):
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- raw voltage gauges for Lua script aux analog inputs #4346
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Lua CAN reception fixed for 11-bit IDs where the frame would be received, but a corrupt ID was passed to the handler function. #4321
|
- Lua CAN reception fixed for 11-bit IDs where the frame would be received, but a corrupt ID was passed to the handler function. #4321
|
||||||
- Many drop downs menues are now sorted #4339
|
- Many drop downs menues are now sorted #4339
|
||||||
|
|
|
@ -569,6 +569,13 @@ static void updateRawSensors() {
|
||||||
engine->outputChannels.rawWastegatePosition = Sensor::getRaw(SensorType::WastegatePosition);
|
engine->outputChannels.rawWastegatePosition = Sensor::getRaw(SensorType::WastegatePosition);
|
||||||
engine->outputChannels.rawIdlePositionSensor = Sensor::getRaw(SensorType::IdlePosition);
|
engine->outputChannels.rawIdlePositionSensor = Sensor::getRaw(SensorType::IdlePosition);
|
||||||
|
|
||||||
|
for (int i = 0;i<AUX_ANALOG_INPUT_COUNT;i++) {
|
||||||
|
adc_channel_e ch = engineConfiguration->auxAnalogInputs[i];
|
||||||
|
if (ch != EFI_ADC_NONE) {
|
||||||
|
engine->outputChannels.rawAnalogInput[i] = getVoltage("raw aux", ch);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: transition AFR to new sensor model
|
// TODO: transition AFR to new sensor model
|
||||||
engine->outputChannels.rawAfr = (engineConfiguration->afr.hwChannel == EFI_ADC_NONE) ? 0 : getVoltageDivided("ego", engineConfiguration->afr.hwChannel);
|
engine->outputChannels.rawAfr = (engineConfiguration->afr.hwChannel == EFI_ADC_NONE) ? 0 : getVoltageDivided("ego", engineConfiguration->afr.hwChannel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue