documenting biquad or else concerns

This commit is contained in:
rusefillc 2022-09-19 12:06:00 -04:00
parent 3e4b514a65
commit a1143779f2
5 changed files with 14 additions and 2 deletions

View File

@ -21,6 +21,8 @@ void setDefaultBaseEngine() {
engineConfiguration->compressionRatio = 9;
engineConfiguration->turbochargerFilter = 0.01f;
engineConfiguration->fuelAlgorithm = LM_SPEED_DENSITY;
// let's have valid default while we still have the field
engineConfiguration->debugMode = DBG_INSTANT_RPM;

View File

@ -1,5 +1,10 @@
#include "pch.h"
/**
* We were NOT able to get this code working reliable
* it could be that biquad parameter or biquad overall is part of the problem
*/
#include "init.h"
#include "frequency_sensor.h"
#include "input_shaft_speed_converter.h"

View File

@ -1,5 +1,9 @@
#include "pch.h"
/**
* See init_input_shaft_speed_sensor.cpp concerns - those might apply here as well!
*/
#include "init.h"
#include "frequency_sensor.h"
#include "turbocharger_speed_converter.h"
@ -10,7 +14,7 @@ static TurbochargerSpeedConverter turbochargerSpeedConverter;
void initTurbochargerSpeedSensor() {
// Filter parameter of 0.01 filters over roughly 100 teeth
turbochargerSpeedSensor.initIfValid(engineConfiguration->turboSpeedSensorInputPin, turbochargerSpeedConverter, 0.01f);
turbochargerSpeedSensor.initIfValid(engineConfiguration->turboSpeedSensorInputPin, turbochargerSpeedConverter, engineConfiguration->turbochargerFilter);
}
void deinitTurbochargerSpeedSensor() {

View File

@ -958,7 +958,7 @@ bit verboseCan2,"Print all","Do not print";Print incoming and outgoing second bu
int launchFuelAdded;+Extra Fuel Added;"%", 1, 0, 0, 100, 0
int launchBoostDuty;+Duty Cycle for the Boost Solenoid;"%", 1, 0, 0, 100, 0
int hardCutRpmRange;Range from Launch RPM to activate Hard Cut;"RPM", 1, 0, 0, 3000, 0
int unused962
float turbochargerFilter
int launchTpsThreshold;;"", 1, 0, 0, 20000, 0
float launchActivateDelay;;"", 1, 0, 0, 20000, 0

View File

@ -4029,6 +4029,7 @@ dialog = tcuControls, "Transmission Settings"
field = "Artificial Misfire", artificialTestMisfire
field = "Always use instant RPM", alwaysInstantRpm
field = vinNumber, vinNumber
field = turbochargerFilter, turbochargerFilter
field = "TODO KS mode 4569", kickStartCranking
panel = allTriggerDebug
panel = torqueTableTbl