AlphaX
This commit is contained in:
parent
d8f46d97ca
commit
100863a5d3
|
@ -0,0 +1,28 @@
|
|||
#define MAIN_HELP_URL "https://rusefi.com/s/hellenNB1"
|
||||
|
||||
#define ts_show_hip9011 false
|
||||
#define ts_show_cj125 false
|
||||
|
||||
! Jokeri says it's better with full pinout just in case
|
||||
! #define ts_show_full_pinout false
|
||||
|
||||
#define ts_show_lcd false
|
||||
#define ts_show_joystick false
|
||||
#define ts_show_egt false
|
||||
#define ts_show_gps false
|
||||
#define ts_show_etb_pins false
|
||||
#define ts_show_analog_divider false
|
||||
#define ts_show_spi true
|
||||
#define ts_show_sd_card true
|
||||
#define ts_show_can_pins false
|
||||
#define ts_show_tunerstudio_port true
|
||||
#define ts_show_can2 false
|
||||
#define ts_show_software_knock true
|
||||
#define ts_show_hardware_simulator false
|
||||
|
||||
#define show_test_presets false
|
||||
#define show_Frankenso_presets false
|
||||
#define show_microRusEFI_presets false
|
||||
#define show_Proteus_presets false
|
||||
#define show_Hellen_presets true
|
||||
#define show_HellenNB1_presets true
|
|
@ -8,7 +8,41 @@
|
|||
#include "hyundai.h"
|
||||
#include "map.h"
|
||||
|
||||
static void commonGenesisCoupe() {
|
||||
strncpy(config->luaScript, R"(
|
||||
|
||||
-- listen to CAN ID 0x4f0
|
||||
canRxAdd(0x4f0)
|
||||
|
||||
-- todo: add payload logic
|
||||
packet546 = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }
|
||||
|
||||
function onCanRx(bus, id, dlc, data)
|
||||
id11 = id % 2048
|
||||
print('got CAN id=' .. id .. ' dlc=' .. dlc)
|
||||
-- todo: add filtering logic if needed
|
||||
|
||||
rpm = getSensor("RPM")
|
||||
-- handle nil RPM, todo: change firmware to avoid nil RPM
|
||||
rpm = (rpm == nil and 0 or rpm)
|
||||
|
||||
if rpm > 800 then
|
||||
-- at the moment we simply
|
||||
txCan(1, 0x546, 0, packet546)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
function onTick()
|
||||
end
|
||||
|
||||
|
||||
)", efi::size(config->luaScript));
|
||||
}
|
||||
|
||||
void setGenesisCoupeBK1() {
|
||||
commonGenesisCoupe();
|
||||
// 2010-2012 315cc at 43.5psi
|
||||
// fuel system is fixed pressure 55psi
|
||||
engineConfiguration->injector.flow = 354.19; // https://www.google.com/search?q=315*sqrt%2855%2F43.5%29
|
||||
|
@ -17,6 +51,7 @@ void setGenesisCoupeBK1() {
|
|||
}
|
||||
|
||||
void setGenesisCoupeBK2() {
|
||||
commonGenesisCoupe();
|
||||
// 2013+ 450cc at 43.5
|
||||
// fuel system is fixed pressure 85psi
|
||||
// flow rate P2 = flow rate P1 * sqrt(P2/P1)
|
||||
|
|
Loading…
Reference in New Issue