mirror of https://github.com/rusefi/rusefi-1.git
auto-sync
This commit is contained in:
parent
849556d02b
commit
4b6d912edd
|
@ -109,8 +109,9 @@ static int getNumberOfInjections(injection_mode_e mode DECLARE_ENGINE_PARAMETER_
|
|||
}
|
||||
|
||||
percent_t getInjectorDutyCycle(int rpm DECLARE_ENGINE_PARAMETER_S) {
|
||||
// float totalPerCycle = getFuelMs(rpm) * getNumberOfInjections()
|
||||
return 0;
|
||||
floatms_t totalPerCycle = getFuelMs(rpm) * getNumberOfInjections(engineConfiguration->injectionMode PASS_ENGINE_PARAMETER);
|
||||
floatms_t engineCycleTime = getCrankshaftRevolutionTimeMs(rpm) * (engineConfiguration->operationMode == TWO_STROKE ? 1 : 2);
|
||||
return 100 * totalPerCycle / engineCycleTime;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -38,7 +38,7 @@ extern engine_pins_s enginePins;
|
|||
/**
|
||||
* @return number of milliseconds in one crankshaft revolution
|
||||
*/
|
||||
float getCrankshaftRevolutionTimeMs(int rpm) {
|
||||
floatms_t getCrankshaftRevolutionTimeMs(int rpm) {
|
||||
return 360 * getOneDegreeTimeMs(rpm);
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ void initializeIgnitionActions(angle_t advance, angle_t dwellAngle,
|
|||
*/
|
||||
#define getOneDegreeTimeNt(rpm) (US2NT(1000000) * 60.0f / 360 / (rpm))
|
||||
|
||||
float getCrankshaftRevolutionTimeMs(int rpm);
|
||||
floatms_t getCrankshaftRevolutionTimeMs(int rpm);
|
||||
|
||||
#define isCrankingR(rpm) ((rpm) > 0 && (rpm) < CONFIG(cranking.rpm))
|
||||
|
||||
|
|
|
@ -291,5 +291,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20150906;
|
||||
return 20150907;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by Version2Header
|
||||
// Sat Aug 22 13:41:44 EDT 2015
|
||||
// Mon Sep 07 08:34:03 EDT 2015
|
||||
#ifndef VCS_VERSION
|
||||
#define VCS_VERSION "8659"
|
||||
#define VCS_VERSION "8764"
|
||||
#endif
|
||||
|
|
|
@ -91,6 +91,7 @@ public enum Sensor {
|
|||
CURRENT_VE(SensorCategory.OPERATIONS, FieldType.FLOAT, 112, BackgroundColor.MUD),
|
||||
MAP_ACCEL_DELTA(SensorCategory.OPERATIONS, FieldType.FLOAT, 124, BackgroundColor.MUD),
|
||||
TPS_ACCEL_FUEL(SensorCategory.OPERATIONS, FieldType.FLOAT, 128, BackgroundColor.MUD),
|
||||
Injector_duty(SensorCategory.OPERATIONS, FieldType.FLOAT, 140, BackgroundColor.MUD),
|
||||
WALL_FUEL(SensorCategory.OPERATIONS, FieldType.FLOAT, 160, BackgroundColor.MUD),
|
||||
temperatureFuelCorrection(SensorCategory.OPERATIONS, FieldType.FLOAT, 164, BackgroundColor.MUD, 0, 5),
|
||||
wallFuelCorrection(SensorCategory.OPERATIONS, FieldType.FLOAT, 168, BackgroundColor.MUD),
|
||||
|
|
|
@ -32,7 +32,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
|
|||
* @see com.rusefi.StartupFrame
|
||||
*/
|
||||
public class Launcher {
|
||||
public static final int CONSOLE_VERSION = 20150903;
|
||||
public static final int CONSOLE_VERSION = 20150907;
|
||||
public static final boolean SHOW_STIMULATOR = false;
|
||||
private static final String TAB_INDEX = "main_tab";
|
||||
protected static final String PORT_KEY = "port";
|
||||
|
|
Loading…
Reference in New Issue