raw aux inputs gauges fix #4346
This commit is contained in:
parent
bde98e6f51
commit
8a8a214927
|
@ -25,6 +25,9 @@ Release template (copy/paste this for new release):
|
|||
|
||||
## Unreleased
|
||||
|
||||
### Added
|
||||
- raw voltage gauges for Lua script aux analog inputs #4346
|
||||
|
||||
### 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
|
||||
- Many drop downs menues are now sorted #4339
|
||||
|
|
|
@ -569,6 +569,13 @@ static void updateRawSensors() {
|
|||
engine->outputChannels.rawWastegatePosition = Sensor::getRaw(SensorType::WastegatePosition);
|
||||
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
|
||||
engine->outputChannels.rawAfr = (engineConfiguration->afr.hwChannel == EFI_ADC_NONE) ? 0 : getVoltageDivided("ego", engineConfiguration->afr.hwChannel);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue