auto-sync
This commit is contained in:
parent
0def188dc1
commit
884d23a66f
|
@ -191,13 +191,13 @@ float getBaseTableFuel(engine_configuration_s *engineConfiguration, int rpm, flo
|
|||
* @return Duration of fuel injection while craning, in milliseconds
|
||||
*/
|
||||
float getCrankingFuel(DECLARE_ENGINE_PARAMETER_F) {
|
||||
return getCrankingFuel3(engineConfiguration, getCoolantTemperature(PASS_ENGINE_PARAMETER_F),
|
||||
engine->rpmCalculator.getRevolutionCounterSinceStart());
|
||||
return getCrankingFuel3(getCoolantTemperature(PASS_ENGINE_PARAMETER_F),
|
||||
engine->rpmCalculator.getRevolutionCounterSinceStart() PASS_ENGINE_PARAMETER);
|
||||
}
|
||||
#endif
|
||||
|
||||
float getCrankingFuel3(engine_configuration_s *engineConfiguration, float coolantTemperature,
|
||||
uint32_t revolutionCounterSinceStart) {
|
||||
float getCrankingFuel3(float coolantTemperature,
|
||||
uint32_t revolutionCounterSinceStart DECLARE_ENGINE_PARAMETER_S) {
|
||||
// these magic constants are in Celsius
|
||||
float baseCrankingFuel = engineConfiguration->cranking.baseFuel;
|
||||
if (cisnan(coolantTemperature))
|
||||
|
|
|
@ -21,7 +21,7 @@ float getInjectorLag(float vBatt DECLARE_ENGINE_PARAMETER_S);
|
|||
float getCltCorrection(float clt DECLARE_ENGINE_PARAMETER_S);
|
||||
float getRunningFuel(float baseFuel, int rpm DECLARE_ENGINE_PARAMETER_S);
|
||||
float getCrankingFuel(DECLARE_ENGINE_PARAMETER_F);
|
||||
float getCrankingFuel3(engine_configuration_s *engineConfiguration, float coolantTemperature, uint32_t revolutionCounterSinceStart);
|
||||
float getCrankingFuel3(float coolantTemperature, uint32_t revolutionCounterSinceStart DECLARE_ENGINE_PARAMETER_S);
|
||||
float getFuelMs(int rpm DECLARE_ENGINE_PARAMETER_S);
|
||||
|
||||
#endif /* FUEL_MAP_H_ */
|
||||
|
|
|
@ -34,7 +34,7 @@ import static com.rusefi.ui.storage.PersistentConfiguration.getConfig;
|
|||
* @see com.rusefi.StartupFrame
|
||||
*/
|
||||
public class Launcher {
|
||||
public static final int CONSOLE_VERSION = 20150328;
|
||||
public static final int CONSOLE_VERSION = 20150405;
|
||||
public static final boolean SHOW_STIMULATOR = false;
|
||||
public static final String TAB_INDEX = "main_tab";
|
||||
private final String port;
|
||||
|
|
|
@ -2,7 +2,9 @@ package com.rusefi.ui;
|
|||
|
||||
import ZoeloeSoft.projects.JFontChooser.JFontChooser;
|
||||
import com.rusefi.Launcher;
|
||||
import com.rusefi.ui.engine.EngineSnifferPanel;
|
||||
import com.rusefi.ui.storage.Node;
|
||||
import com.rusefi.ui.util.URLLabel;
|
||||
import com.rusefi.ui.widgets.IdleLabel;
|
||||
|
||||
import javax.swing.*;
|
||||
|
@ -11,6 +13,8 @@ import java.awt.event.ActionEvent;
|
|||
import java.awt.event.ActionListener;
|
||||
|
||||
public class MessagesPane {
|
||||
private static final String HELP_URL = "http://rusefi.com/wiki/index.php?title=Manual:Software:dev_console_commands";
|
||||
|
||||
private final JPanel content = new JPanel(new BorderLayout()) {
|
||||
@Override
|
||||
public Dimension getPreferredSize() {
|
||||
|
@ -36,6 +40,7 @@ public class MessagesPane {
|
|||
messagesPanel.getButtonPanel().add(new RpmLabel().getContent());
|
||||
topPanel.add(messagesPanel.getButtonPanel());
|
||||
topPanel.add(fontButton);
|
||||
topPanel.add(new URLLabel(EngineSnifferPanel.HELP_TEXT, HELP_URL));
|
||||
content.add(topPanel, BorderLayout.NORTH);
|
||||
|
||||
JPanel statsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
|
||||
|
|
|
@ -108,11 +108,11 @@ void testFuelMap(void) {
|
|||
|
||||
printf("*************************************************** getStartingFuel\r\n");
|
||||
// NAN in case we have issues with the CLT sensor
|
||||
assertEqualsM("getStartingFuel nan", 4, getCrankingFuel3(engineConfiguration, NAN, 0));
|
||||
assertEqualsM("getStartingFuel#1", 23.7333, getCrankingFuel3(engineConfiguration, 0, 4));
|
||||
assertEqualsM("getStartingFuel#2", 18.0419, getCrankingFuel3(engineConfiguration, 8, 15));
|
||||
assertEqualsM("getStartingFuel#3", 11.2000, getCrankingFuel3(engineConfiguration, 70, 0));
|
||||
assertEqualsM("getStartingFuel#3", 5.6000, getCrankingFuel3(engineConfiguration, 70, 50));
|
||||
assertEqualsM("getStartingFuel nan", 4, getCrankingFuel3(NAN, 0 PASS_ENGINE_PARAMETER));
|
||||
assertEqualsM("getStartingFuel#1", 23.7333, getCrankingFuel3(0, 4 PASS_ENGINE_PARAMETER));
|
||||
assertEqualsM("getStartingFuel#2", 18.0419, getCrankingFuel3(8, 15 PASS_ENGINE_PARAMETER));
|
||||
assertEqualsM("getStartingFuel#3", 11.2000, getCrankingFuel3(70, 0 PASS_ENGINE_PARAMETER));
|
||||
assertEqualsM("getStartingFuel#3", 5.6000, getCrankingFuel3(70, 50 PASS_ENGINE_PARAMETER));
|
||||
}
|
||||
|
||||
extern engine_configuration_s *engineConfiguration;
|
||||
|
|
Loading…
Reference in New Issue