2015-07-10 06:01:56 -07:00
|
|
|
/*
|
|
|
|
* @file advance_map.h
|
|
|
|
*
|
|
|
|
* @date Mar 27, 2013
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2022-04-13 12:51:11 -07:00
|
|
|
#include "ignition_state_generated.h"
|
|
|
|
|
2019-11-14 21:00:13 -08:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
angle_t getAdvance(int rpm, float engineLoad);
|
2022-01-01 12:47:47 -08:00
|
|
|
angle_t getCylinderIgnitionTrim(size_t cylinderNumber, int rpm, float ignitionLoad);
|
2022-04-13 13:39:59 -07:00
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
angle_t getAdvanceCorrections(int rpm);
|
|
|
|
size_t getMultiSparkCount(int rpm);
|
2022-04-13 12:43:05 -07:00
|
|
|
|
2022-04-13 12:51:11 -07:00
|
|
|
class IgnitionState : public ignition_state_s {
|
2022-04-13 13:39:59 -07:00
|
|
|
public:
|
2022-04-16 18:03:50 -07:00
|
|
|
IgnitionState() {
|
|
|
|
luaTimingMult = 1;
|
|
|
|
}
|
2022-04-13 13:39:59 -07:00
|
|
|
floatms_t getSparkDwell(int rpm);
|
2022-04-13 12:51:11 -07:00
|
|
|
};
|