rusefi-1/firmware/config/engines/GY6_139QMB.cpp

51 lines
1.5 KiB
C++

/**
* @file GY6_139QMB.cpp
* @brief 139qmb default engine configuration
*
* 4-stroke one cylinder
*
* set engine_type 8
*
* @date Feb 13, 2014
* @author rus084, (c) 2015
* @author Andrey Belomutskiy, (c) 2012-2020
*/
#include "pch.h"
#include "GY6_139QMB.h"
#include "advance_map.h"
void setGy6139qmbDefaultEngineConfiguration() {
// engineConfiguration->map.sensor.type = MT_3V_SENSOR;
setEgoSensor(ES_NarrowBand);
engineConfiguration->rpmHardLimit = 9000;
engineConfiguration->cranking.rpm = 1100;
setTargetRpmCurve(2000);
engineConfiguration->analogInputDividerCoefficient = 1;
engineConfiguration->globalTriggerAngleOffset = 45;
engineConfiguration->specs.displacement = 0.072; // 72cc
engineConfiguration->specs.cylindersCount = 1;
setCrankOperationMode();
// this is related to 'setDefaultBaseEngine' having 'skippedWheelOnCam = true' which is a weird fact by itself
engineConfiguration->skippedWheelOnCam = false;
engineConfiguration->specs.firingOrder = FO_1;
/**
* We treat the trigger as 8-1 toothed wheel
*/
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;
engineConfiguration->trigger.customTotalToothCount = 8;
engineConfiguration->trigger.customSkippedToothCount = 1;
engineConfiguration->injectionPins[0] = Gpio::C9;
engineConfiguration->ignitionPins[0] = Gpio::C8;
// set injection_mode 1
engineConfiguration->injectionMode = IM_SEQUENTIAL;
// set ignition_mode 0
engineConfiguration->ignitionMode = IM_ONE_COIL;
}