2021-10-11 09:37:24 -07:00
|
|
|
/*
|
|
|
|
* @file hyundai.cpp
|
|
|
|
*
|
|
|
|
* @date Oct 11, 2021
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2021
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hyundai.h"
|
2021-10-11 11:22:35 -07:00
|
|
|
#include "map.h"
|
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void setGenesisCoupeBK1() {
|
2021-10-11 11:22:35 -07:00
|
|
|
// 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
|
|
|
|
engineConfiguration->fuelReferencePressure = PSI2KPA(55);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void setGenesisCoupeBK2() {
|
2021-10-11 11:22:35 -07:00
|
|
|
// 2013+ 450cc at 43.5
|
|
|
|
// fuel system is fixed pressure 85psi
|
|
|
|
// flow rate P2 = flow rate P1 * sqrt(P2/P1)
|
|
|
|
engineConfiguration->injector.flow = 629.03; // https://www.google.com/search?q=450*sqrt%2885%2F43.5%29
|
|
|
|
engineConfiguration->fuelReferencePressure = PSI2KPA(85);
|
|
|
|
|
|
|
|
}
|