only:hyundai

This commit is contained in:
rusefillc 2024-02-24 23:05:12 -05:00
parent 1edf95e403
commit f218a025b2
3 changed files with 23 additions and 22 deletions

View File

@ -15,6 +15,8 @@ https://rusefi.com/docs/pinouts/hellen/hellen154hyundai/
#include "hellen_meta.h"
#include "defaults.h"
#include "lua_lib.h"
#include "hyundai_coupe_canned.cpp"
#include "hyundai_pb_canned.cpp"
static void set201xHyundai() {
#if HW_PROTEUS
@ -237,28 +239,6 @@ end
}
#if HW_HELLEN_HYUNDAI
static void cannedprimeBins() {
static const float hardCodedprimeBins[8] = {-40.0, -20.0, 0.0, 20.0, 40.0, 60.0, 80.0, 100.0};
copyArray(engineConfiguration->primeBins, hardCodedprimeBins);
}
static void cannedprimeValues() {
static const float hardCodedprimeValues[8] = {755.0, 605.0, 265.0, 140.0, 75.0, 50.0, 45.0, 40.0};
copyArray(engineConfiguration->primeValues, hardCodedprimeValues);
}
static void cannedcltIdleCorrBins() {
static const float hardCodedcltIdleCorrBins[16] = {-40.0, -30.0, -20.0, -10.0, 0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0, 110.0};
copyArray(config->cltIdleCorrBins, hardCodedcltIdleCorrBins);
}
static void cannedcltIdleCorr() {
static const float hardCodedcltIdleCorr[16] = {1.5, 1.5, 1.333333, 1.333333, 1.333333, 1.333333, 1.333333, 1.333333, 1.333333, 1.233333, 1.166667, 1.1, 1.0, 1.0, 1.0, 1.0};
copyArray(config->cltIdleCorr, hardCodedcltIdleCorr);
}
#endif // HW_HELLEN_HYUNDAI
static void commonGenesisCoupe() {
set201xHyundai();

View File

@ -0,0 +1,21 @@
#if HW_HELLEN_HYUNDAI
static void cannedprimeBins() {
static const float hardCodedprimeBins[8] = {-40.0, -20.0, 0.0, 20.0, 40.0, 60.0, 80.0, 100.0};
copyArray(engineConfiguration->primeBins, hardCodedprimeBins);
}
static void cannedprimeValues() {
static const float hardCodedprimeValues[8] = {755.0, 605.0, 265.0, 140.0, 75.0, 50.0, 45.0, 40.0};
copyArray(engineConfiguration->primeValues, hardCodedprimeValues);
}
static void cannedcltIdleCorrBins() {
static const float hardCodedcltIdleCorrBins[16] = {-40.0, -30.0, -20.0, -10.0, 0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0, 110.0};
copyArray(config->cltIdleCorrBins, hardCodedcltIdleCorrBins);
}
static void cannedcltIdleCorr() {
static const float hardCodedcltIdleCorr[16] = {1.5, 1.5, 1.333333, 1.333333, 1.333333, 1.333333, 1.333333, 1.333333, 1.333333, 1.233333, 1.166667, 1.1, 1.0, 1.0, 1.0, 1.0};
copyArray(config->cltIdleCorr, hardCodedcltIdleCorr);
}
#endif // HW_HELLEN_HYUNDAI