TPS acceleration docs
This commit is contained in:
parent
13521eec0b
commit
61b54b3f80
|
@ -172,20 +172,20 @@ float AccelEnrichmemnt::getMaxDelta(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
|
||||
// todo: eliminate code duplication between these two methods! Some pointer magic would help.
|
||||
floatms_t AccelEnrichmemnt::getTpsEnrichment(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
int index = getMaxDeltaIndex(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
int maxDeltaIndex = getMaxDeltaIndex(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
// FuelSchedule *fs = engineConfiguration->injectionEvents;
|
||||
float tpsTo = cb.get(index);
|
||||
float tpsFrom = cb.get(index - 1);
|
||||
float d = tpsTo - tpsFrom;
|
||||
percent_t tpsTo = cb.get(maxDeltaIndex);
|
||||
percent_t tpsFrom = cb.get(maxDeltaIndex - 1);
|
||||
percent_t deltaTps = tpsTo - tpsFrom;
|
||||
|
||||
float valueFromTable = tpsTpsMap.getValue(tpsFrom, tpsTo);
|
||||
|
||||
floatms_t extraFuel;
|
||||
if (d > engineConfiguration->tpsAccelEnrichmentThreshold) {
|
||||
if (deltaTps > engineConfiguration->tpsAccelEnrichmentThreshold) {
|
||||
extraFuel = valueFromTable;
|
||||
} else if (d < -engineConfiguration->tpsDecelEnleanmentThreshold) {
|
||||
extraFuel = d * engineConfiguration->tpsDecelEnleanmentMultiplier;
|
||||
} else if (deltaTps < -engineConfiguration->tpsDecelEnleanmentThreshold) {
|
||||
extraFuel = deltaTps * engineConfiguration->tpsDecelEnleanmentMultiplier;
|
||||
} else {
|
||||
extraFuel = 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 13:35:29 EDT 2019
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Mar 16 10:09:42 EDT 2019
|
||||
// begin
|
||||
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
||||
#define ENGINE_CONFIGURATION_GENERATED_H_
|
||||
|
@ -1236,6 +1236,7 @@ typedef struct {
|
|||
*/
|
||||
int canSleepPeriodMs;
|
||||
/**
|
||||
* '4 stroke with symmetrical crank' is a pretty special case for example on Miata NB2
|
||||
* See engineCycle
|
||||
* set operation_mode X
|
||||
* offset 488
|
||||
|
@ -1810,10 +1811,12 @@ typedef struct {
|
|||
*/
|
||||
brain_pin_e LIS302DLCsPin;
|
||||
/**
|
||||
* How many engine cycles to consider?
|
||||
* offset 2064
|
||||
*/
|
||||
int tpsAccelLength;
|
||||
/**
|
||||
* Maximum delta in TPS percentange over the 'length'
|
||||
* offset 2068
|
||||
*/
|
||||
float tpsAccelEnrichmentThreshold;
|
||||
|
@ -2578,4 +2581,4 @@ typedef struct {
|
|||
|
||||
#endif
|
||||
// end
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 13:35:29 EDT 2019
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Mar 16 10:09:42 EDT 2019
|
||||
|
|
|
@ -823,8 +823,8 @@ custom pin_mode_e 1 bits, U08, @OFFSET@, [0:5], @@pin_mode_e_enum@@
|
|||
brain_pin_e LIS302DLCsPin;
|
||||
|
||||
|
||||
int tpsAccelLength;;"cycles", 1, 0, 1, 200, 0
|
||||
float tpsAccelEnrichmentThreshold;;"roc", 1, 0, 0, 200, 3
|
||||
int tpsAccelLength;+How many engine cycles to consider?;"cycles", 1, 0, 1, 200, 0
|
||||
float tpsAccelEnrichmentThreshold;+Maximum delta in TPS percentange over the 'length';"roc", 1, 0, 0, 200, 3
|
||||
float vvtOffset;+angle between cam sensor and VVT zero position\nset vvt_offset X;"value", 1, 0, -720, 1000, 1
|
||||
|
||||
int engineLoadAccelLength;;"cycles", 1, 0, 1, 200, 0
|
||||
|
|
Loading…
Reference in New Issue