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