Add Option: Force stepper parking every restart (#562)
This commit is contained in:
parent
dc6317a737
commit
7129b23947
|
@ -1,4 +1,4 @@
|
||||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Jan 28 21:16:58 EET 2018
|
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Jan 28 22:17:49 EET 2018
|
||||||
// begin
|
// begin
|
||||||
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
||||||
#define ENGINE_CONFIGURATION_GENERATED_H_
|
#define ENGINE_CONFIGURATION_GENERATED_H_
|
||||||
|
@ -639,7 +639,7 @@ typedef struct {
|
||||||
bool measureMapOnlyInOneCylinder : 1;
|
bool measureMapOnlyInOneCylinder : 1;
|
||||||
/**
|
/**
|
||||||
offset 376 bit 19 */
|
offset 376 bit 19 */
|
||||||
bool unused_board_984_19 : 1;
|
bool stepperForceParkingEveryRestart : 1;
|
||||||
/**
|
/**
|
||||||
offset 376 bit 20 */
|
offset 376 bit 20 */
|
||||||
bool unused_board_984_20 : 1;
|
bool unused_board_984_20 : 1;
|
||||||
|
@ -2330,4 +2330,4 @@ typedef struct {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// end
|
// end
|
||||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Jan 28 21:16:58 EET 2018
|
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Jan 28 22:17:49 EET 2018
|
||||||
|
|
|
@ -580,8 +580,8 @@
|
||||||
#define vvtCamSensorUseRise_offset_hex 3d8
|
#define vvtCamSensorUseRise_offset_hex 3d8
|
||||||
#define measureMapOnlyInOneCylinder_offset 984
|
#define measureMapOnlyInOneCylinder_offset 984
|
||||||
#define measureMapOnlyInOneCylinder_offset_hex 3d8
|
#define measureMapOnlyInOneCylinder_offset_hex 3d8
|
||||||
#define unused_board_984_19_offset 984
|
#define stepperForceParkingEveryRestart_offset 984
|
||||||
#define unused_board_984_19_offset_hex 3d8
|
#define stepperForceParkingEveryRestart_offset_hex 3d8
|
||||||
#define unused_board_984_20_offset 984
|
#define unused_board_984_20_offset 984
|
||||||
#define unused_board_984_20_offset_hex 3d8
|
#define unused_board_984_20_offset_hex 3d8
|
||||||
#define unused_board_984_21_offset 984
|
#define unused_board_984_21_offset 984
|
||||||
|
|
|
@ -37,6 +37,8 @@ static msg_t stThread(StepperMotor *motor) {
|
||||||
waitForSlowAdc();
|
waitForSlowAdc();
|
||||||
// now check if stepper motor re-initialization is requested - if the throttle pedal is pressed at startup
|
// now check if stepper motor re-initialization is requested - if the throttle pedal is pressed at startup
|
||||||
bool forceStepperParking = !engine->rpmCalculator.isRunning(PASS_ENGINE_PARAMETER_SIGNATURE) && getTPS(PASS_ENGINE_PARAMETER_SIGNATURE) > STEPPER_PARKING_TPS;
|
bool forceStepperParking = !engine->rpmCalculator.isRunning(PASS_ENGINE_PARAMETER_SIGNATURE) && getTPS(PASS_ENGINE_PARAMETER_SIGNATURE) > STEPPER_PARKING_TPS;
|
||||||
|
if (boardConfiguration->stepperForceParkingEveryRestart)
|
||||||
|
forceStepperParking = true;
|
||||||
scheduleMsg(logger, "Stepper: savedStepperPos=%d forceStepperParking=%d (tps=%.2f)", motor->currentPosition, (forceStepperParking ? 1 : 0), getTPS(PASS_ENGINE_PARAMETER_SIGNATURE));
|
scheduleMsg(logger, "Stepper: savedStepperPos=%d forceStepperParking=%d (tps=%.2f)", motor->currentPosition, (forceStepperParking ? 1 : 0), getTPS(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||||
|
|
||||||
if (motor->currentPosition < 0 || forceStepperParking) {
|
if (motor->currentPosition < 0 || forceStepperParking) {
|
||||||
|
|
|
@ -543,7 +543,7 @@ bit is_enabled_spi_2
|
||||||
bit isCJ125Enabled
|
bit isCJ125Enabled
|
||||||
bit vvtCamSensorUseRise;+Use rise or fall signal front
|
bit vvtCamSensorUseRise;+Use rise or fall signal front
|
||||||
bit measureMapOnlyInOneCylinder;+Useful for individual intakes
|
bit measureMapOnlyInOneCylinder;+Useful for individual intakes
|
||||||
bit unused_board_984_19
|
bit stepperForceParkingEveryRestart
|
||||||
bit unused_board_984_20
|
bit unused_board_984_20
|
||||||
bit unused_board_984_21
|
bit unused_board_984_21
|
||||||
bit unused_board_984_22
|
bit unused_board_984_22
|
||||||
|
|
|
@ -1512,6 +1512,7 @@ cmd_stop_engine = "w\x00\x99\x00\x00"
|
||||||
field = "Stepper reaction time", idleStepperReactionTime, useStepperIdle
|
field = "Stepper reaction time", idleStepperReactionTime, useStepperIdle
|
||||||
field = "Stepper total steps", idleStepperTotalSteps, useStepperIdle
|
field = "Stepper total steps", idleStepperTotalSteps, useStepperIdle
|
||||||
field = "Stepper parking extra steps, %", stepperParkingExtraSteps, useStepperIdle
|
field = "Stepper parking extra steps, %", stepperParkingExtraSteps, useStepperIdle
|
||||||
|
field = "Force parking every restart", stepperForceParkingEveryRestart, useStepperIdle
|
||||||
|
|
||||||
dialog = idleHwType, "Idle Valve Hardware", border
|
dialog = idleHwType, "Idle Valve Hardware", border
|
||||||
field = "use stepper", useStepperIdle
|
field = "use stepper", useStepperIdle
|
||||||
|
|
Loading…
Reference in New Issue