2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file GY6_139QMB.cpp
|
|
|
|
* @brief 139qmb default engine configuration
|
|
|
|
*
|
2019-10-07 18:23:38 -07:00
|
|
|
* 4-stroke one cylinder
|
|
|
|
*
|
|
|
|
* set engine_type 8
|
|
|
|
*
|
2015-07-10 06:01:56 -07:00
|
|
|
* @date Feb 13, 2014
|
|
|
|
* @author rus084, (c) 2015
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2021-08-03 19:05:01 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
#include "GY6_139QMB.h"
|
|
|
|
#include "advance_map.h"
|
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void setGy6139qmbDefaultEngineConfiguration() {
|
2015-07-10 06:01:56 -07:00
|
|
|
// engineConfiguration->map.sensor.type = MT_3V_SENSOR;
|
2021-11-16 01:15:29 -08:00
|
|
|
setEgoSensor(ES_NarrowBand);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
engineConfiguration->rpmHardLimit = 9000;
|
|
|
|
engineConfiguration->cranking.rpm = 1100;
|
2021-11-16 01:15:29 -08:00
|
|
|
setTargetRpmCurve(2000);
|
2015-07-10 06:01:56 -07:00
|
|
|
engineConfiguration->analogInputDividerCoefficient = 1;
|
|
|
|
engineConfiguration->globalTriggerAngleOffset = 45;
|
2023-03-27 00:58:18 -07:00
|
|
|
engineConfiguration->displacement = 0.072; // 72cc
|
|
|
|
engineConfiguration->cylindersCount = 1;
|
2022-04-02 23:21:37 -07:00
|
|
|
setCrankOperationMode();
|
2022-04-02 20:50:39 -07:00
|
|
|
// this is related to 'setDefaultBaseEngine' having 'skippedWheelOnCam = true' which is a weird fact by itself
|
|
|
|
engineConfiguration->skippedWheelOnCam = false;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2023-03-27 00:58:18 -07:00
|
|
|
engineConfiguration->firingOrder = FO_1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* We treat the trigger as 8-1 toothed wheel
|
|
|
|
*/
|
|
|
|
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;
|
|
|
|
engineConfiguration->trigger.customTotalToothCount = 8;
|
|
|
|
engineConfiguration->trigger.customSkippedToothCount = 1;
|
|
|
|
|
2022-04-28 14:32:39 -07:00
|
|
|
engineConfiguration->injectionPins[0] = Gpio::C9;
|
|
|
|
engineConfiguration->ignitionPins[0] = Gpio::C8;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-10-07 18:23:38 -07:00
|
|
|
// set injection_mode 1
|
|
|
|
engineConfiguration->injectionMode = IM_SEQUENTIAL;
|
2019-10-07 20:12:29 -07:00
|
|
|
// set ignition_mode 0
|
|
|
|
engineConfiguration->ignitionMode = IM_ONE_COIL;
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|