auto-sync
This commit is contained in:
parent
11898863e2
commit
f3e12db4e8
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "engine_configuration.h"
|
#include "engine_configuration.h"
|
||||||
|
#include "ec2.h"
|
||||||
|
|
||||||
class EngineState {
|
class EngineState {
|
||||||
public:
|
public:
|
||||||
|
@ -17,6 +18,15 @@ public:
|
||||||
*/
|
*/
|
||||||
float iat;
|
float iat;
|
||||||
float clt;
|
float clt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* By the way:
|
||||||
|
* 'cranking' means engine is not stopped and the rpm are below crankingRpm
|
||||||
|
* 'running' means RPM are above crankingRpm
|
||||||
|
* 'spinning' means the engine is not stopped
|
||||||
|
*/
|
||||||
|
bool isSpinning;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class RpmCalculator;
|
class RpmCalculator;
|
||||||
|
@ -25,6 +35,7 @@ class Engine {
|
||||||
public:
|
public:
|
||||||
RpmCalculator *rpmCalculator;
|
RpmCalculator *rpmCalculator;
|
||||||
engine_configuration_s *engineConfiguration;
|
engine_configuration_s *engineConfiguration;
|
||||||
|
engine_configuration2_s *engineConfiguration2;
|
||||||
|
|
||||||
|
|
||||||
EngineState engineState;
|
EngineState engineState;
|
||||||
|
|
|
@ -8,11 +8,6 @@
|
||||||
#ifndef FUEL_MAP_H_
|
#ifndef FUEL_MAP_H_
|
||||||
#define FUEL_MAP_H_
|
#define FUEL_MAP_H_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
|
|
||||||
void prepareFuelMap(void);
|
void prepareFuelMap(void);
|
||||||
|
@ -27,8 +22,4 @@ float getCrankingFuel(void);
|
||||||
float getStartingFuel(float coolantTemperature);
|
float getStartingFuel(float coolantTemperature);
|
||||||
float getFuelMs(int rpm, Engine *engine);
|
float getFuelMs(int rpm, Engine *engine);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#endif /* FUEL_MAP_H_ */
|
#endif /* FUEL_MAP_H_ */
|
||||||
|
|
|
@ -121,6 +121,7 @@ uint8_t errorMessageBuffer[200];
|
||||||
static bool hasFirmwareErrorFlag = FALSE;
|
static bool hasFirmwareErrorFlag = FALSE;
|
||||||
extern engine_configuration_s *engineConfiguration;
|
extern engine_configuration_s *engineConfiguration;
|
||||||
extern board_configuration_s *boardConfiguration;
|
extern board_configuration_s *boardConfiguration;
|
||||||
|
extern engine_configuration2_s *engineConfiguration2;
|
||||||
extern Engine engine;
|
extern Engine engine;
|
||||||
|
|
||||||
char *getFirmwareError(void) {
|
char *getFirmwareError(void) {
|
||||||
|
@ -134,6 +135,7 @@ void runRusEfi(void) {
|
||||||
engine.engineConfiguration = engineConfiguration;
|
engine.engineConfiguration = engineConfiguration;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
initErrorHandling();
|
initErrorHandling();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue