totalFuel and totalIgnition correction gauges in Tunerstudio #4955
This commit is contained in:
parent
a0800cd54f
commit
ace53609d1
|
@ -38,12 +38,14 @@ public enum StateDictionary {
|
|||
register(live_data_e.LDS_boost_control, BoostControl.VALUES, "boost_control");
|
||||
register(live_data_e.LDS_launch_control_state, LaunchControl.VALUES, "launch_control");
|
||||
register(live_data_e.LDS_high_pressure_fuel_pump, HighPressureFuelPump.VALUES, "high_pressure_fuel_pump");
|
||||
register(live_data_e.LDS_timing_state, TimingState.VALUES, "advance_map");
|
||||
register(live_data_e.LDS_ignition_state, IgnitionState.VALUES, "advance_map");
|
||||
register(live_data_e.LDS_electronic_throttle, ElectronicThrottle.VALUES, "electronic_throttle");
|
||||
register(live_data_e.LDS_knock_controller, KnockController.VALUES, "knock_controller");
|
||||
register(live_data_e.LDS_wideband_state, WidebandController.VALUES, "AemXSeriesLambda");
|
||||
register(live_data_e.LDS_trigger_state_primary, TriggerStatePrimary.VALUES, "trigger_decoder");
|
||||
register(live_data_e.LDS_fuel_computer, FuelComputer.VALUES, "fuel_computer");
|
||||
register(live_data_e.LDS_antilag_system_state, AntilagSystem.VALUES, "antilag_system");
|
||||
if (map.size() != live_data_e.values().length) {
|
||||
Set<live_data_e> missing = new HashSet<>(Arrays.asList(live_data_e.values()));
|
||||
missing.removeAll(map.keySet());
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.rusefi.ldmp;
|
||||
|
||||
import com.rusefi.config.generated.FuelComputer;
|
||||
import com.rusefi.config.generated.TimingState;
|
||||
import com.rusefi.config.generated.TsOutputs;
|
||||
import com.rusefi.enums.live_data_e;
|
||||
import org.junit.Test;
|
||||
|
@ -16,6 +18,9 @@ public class StateDictionaryTest {
|
|||
@Test
|
||||
public void testOffset() {
|
||||
int outputsSize = StateDictionary.getSize(TsOutputs.VALUES);
|
||||
assertEquals(outputsSize, StateDictionary.INSTANCE.getOffset(live_data_e.LDS_knock_controller));
|
||||
assertEquals(outputsSize
|
||||
+ StateDictionary.getSize(FuelComputer.VALUES)
|
||||
+ StateDictionary.getSize(TimingState.VALUES)
|
||||
, StateDictionary.INSTANCE.getOffset(live_data_e.LDS_knock_controller));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue