refactoring: method name consistency
This commit is contained in:
parent
cee7726960
commit
60d96c4216
|
@ -185,7 +185,7 @@ void setDefaultIatTimingCorrection(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
copyTimingTable(defaultIatTiming, config->ignitionIatCorrTable);
|
||||
}
|
||||
|
||||
void prepareTimingMap(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
void initTimingMap(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
// We init both tables in RAM because here we're at a very early stage, with no config settings loaded.
|
||||
advanceMap.init(config->ignitionTable, config->ignitionLoadBins,
|
||||
config->ignitionRpmBins);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
angle_t getAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||
void setDefaultIatTimingCorrection(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
void prepareTimingMap(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
void initTimingMap(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
float getTopAdvanceForBore(chamber_style_e style, int octane, double compression, double bore);
|
||||
float getInitialAdvance(int rpm, float map, float advanceMax);
|
||||
void buildTimingMap(float advanceMax DECLARE_CONFIG_PARAMETER_SUFFIX);
|
||||
|
|
|
@ -31,10 +31,10 @@
|
|||
EXTERN_ENGINE;
|
||||
|
||||
void initDataStructures(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
prepareFuelMap(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
prepareTimingMap(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
initFuelMap(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
initTimingMap(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
initSpeedDensity(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
prepareFsio();
|
||||
initFsio();
|
||||
}
|
||||
|
||||
void initAlgo(Logging *sharedLogger) {
|
||||
|
|
|
@ -224,7 +224,7 @@ floatms_t getInjectorLag(float vBatt DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
|||
* @note this method has nothing to do with fuel map VALUES - it's job
|
||||
* is to prepare the fuel map data structure for 3d interpolation
|
||||
*/
|
||||
void prepareFuelMap(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
void initFuelMap(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
fuelMap.init(config->fuelTable, config->fuelLoadBins, config->fuelRpmBins);
|
||||
fuelPhaseMap.init(config->injectionPhase, config->injPhaseLoadBins, config->injPhaseRpmBins);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include "engine.h"
|
||||
|
||||
void prepareFuelMap(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
void initFuelMap(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
/**
|
||||
* @return total injection time into all cylinders, before CLT & IAT corrections
|
||||
|
|
|
@ -702,7 +702,7 @@ void initFsioImpl(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
|||
|
||||
}
|
||||
|
||||
void prepareFsio(void) {
|
||||
void initFsio(void) {
|
||||
for (int i = 0; i < FSIO_COMMAND_COUNT; i++) {
|
||||
fsioLogics[i] = NULL;
|
||||
}
|
||||
|
|
|
@ -27,6 +27,6 @@ void runFsio(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
|||
float getFsioOutputValue(int index DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||
void applyFsioConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
void onConfigurationChangeFsioCallback(engine_configuration_s *previousConfiguration DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||
void prepareFsio(void);
|
||||
void initFsio(void);
|
||||
|
||||
#endif /* LE_FUNCTIONS_H_ */
|
||||
|
|
Loading…
Reference in New Issue