random Frankenso clean-up

This commit is contained in:
rusefillc 2022-12-14 19:10:00 -05:00
parent 9de5fc4a95
commit 871afb07a2
14 changed files with 1 additions and 27 deletions

View File

@ -15,8 +15,6 @@
#include "custom_engine.h"
void setCitroenBerlingoTU3JPConfiguration() {
setDefaultFrankensoConfiguration();
/**
* Base engine setting
*/

View File

@ -81,7 +81,6 @@ void disableLCD(engine_configuration_s *engineConfiguration) {
// todo: should this be part of more default configurations?
void setFrankensoConfiguration() {
setDefaultFrankensoConfiguration();
engineConfiguration->trigger.type = TT_ONE_PLUS_ONE;
setFrankenso_01_LCD(engineConfiguration);
@ -238,7 +237,6 @@ void setFrankensoBoardTestConfiguration() {
// ETB_BENCH_ENGINE
// set engine_type 58
void setEtbTestConfiguration() {
setDefaultFrankensoConfiguration();
// VAG test ETB
// set tps_min 54
engineConfiguration->tpsMin = 54;

View File

@ -19,8 +19,6 @@
#include "custom_engine.h"
void setDodgeNeon1995EngineConfiguration() {
setDefaultFrankensoConfiguration();
engineConfiguration->trigger.type = TT_DODGE_NEON_1995;
engineConfiguration->fuelAlgorithm = LM_ALPHA_N;
@ -110,7 +108,6 @@ void setDodgeNeon1995EngineConfiguration() {
}
void setDodgeNeonNGCEngineConfiguration() {
setDefaultFrankensoConfiguration();
engineConfiguration->trigger.type = TT_DODGE_NEON_2003_CAM;
setFrankenso_01_LCD(engineConfiguration);
setFrankenso0_1_joystick(engineConfiguration);

View File

@ -19,8 +19,6 @@
* @brief Default values for persistent properties
*/
void setFordInline6() {
setDefaultFrankensoConfiguration();
engineConfiguration->specs.cylindersCount = 6;
setCamOperationMode();

View File

@ -44,8 +44,6 @@ static void setDefaultAspireMaps() {
}
void setFordAspireEngineConfiguration() {
setDefaultFrankensoConfiguration();
engineConfiguration->tpsMin = 100;
engineConfiguration->tpsMax = 750;

View File

@ -23,7 +23,7 @@ static void setDefaultCustomMaps() {
}
void setHonda600() {
setDefaultFrankensoConfiguration();
engineConfiguration->trigger.type = TT_HONDA_CBR_600;
engineConfiguration->fuelAlgorithm = LM_ALPHA_N;

View File

@ -106,7 +106,6 @@ static void commonMiataNa() {
}
void common079721_2351() {
setDefaultFrankensoConfiguration();
engineConfiguration->engineChartSize = 300;

View File

@ -255,7 +255,6 @@ static void miataNAcommon() {
* MIATA_NA6_MAP
*/
void setMiataNA6_MAP_Frankenso() {
setDefaultFrankensoConfiguration();
setFrankensoConfiguration();
miataNAcommonEngineSettings();

View File

@ -14,7 +14,6 @@
#include "mitsubishi.h"
void setMitsubishiConfiguration() {
setDefaultFrankensoConfiguration();
engineConfiguration->trigger.type = TT_MITSUBISHI; // same trigger as 4G63?

View File

@ -13,8 +13,6 @@
#include "nissan_primera.h"
void setNissanPrimeraEngineConfiguration() {
setDefaultFrankensoConfiguration();
engineConfiguration->trigger.type = TT_NISSAN_SR20VE;
engineConfiguration->auxValves[0] = Gpio::E14;

View File

@ -13,7 +13,6 @@
#include "sachs.h"
void setSachs() {
setDefaultFrankensoConfiguration();
engineConfiguration->specs.displacement = 0.1; // 100cc
engineConfiguration->specs.cylindersCount = 1;

View File

@ -16,8 +16,6 @@
// TEST_ENGINE
void setTestCamEngineConfiguration() {
setDefaultFrankensoConfiguration();
engineConfiguration->trigger.type = TT_ONE_PLUS_ONE;
setCamOperationMode();
@ -60,7 +58,6 @@ void setTestCrankEngineConfiguration() {
}
void setTestVVTEngineConfiguration() {
setDefaultFrankensoConfiguration();
setCrankOperationMode();
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;

View File

@ -632,11 +632,6 @@ static void setDefaultEngineConfiguration() {
strncpy(config->luaScript, "function onTick()\nend", efi::size(config->luaScript));
}
void setDefaultFrankensoConfiguration() {
}
#ifdef CONFIG_RESET_SWITCH_PORT
// this pin is not configurable at runtime so that we have a reliable way to reset configuration
#define SHOULD_IGNORE_FLASH() (palReadPad(CONFIG_RESET_SWITCH_PORT, CONFIG_RESET_SWITCH_PIN) == 0)

View File

@ -46,7 +46,6 @@ void commonFrankensoAnalogInputs(engine_configuration_s *engineConfiguration);
void setFrankenso0_1_joystick(engine_configuration_s *engineConfiguration);
void emptyCallbackWithConfiguration(engine_configuration_s * engine);
void setDefaultFrankensoConfiguration();
typedef void (*configuration_callback_t)(engine_configuration_s*);