From e4e3684f62f1a00499310db3f9cb678f58b75305 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 11 Jun 2017 14:59:03 -0400 Subject: [PATCH] docs --- firmware/controllers/core/table_helper.cpp | 3 +++ firmware/controllers/engine_controller.cpp | 2 +- firmware/controllers/math/engine_math.cpp | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/core/table_helper.cpp b/firmware/controllers/core/table_helper.cpp index c330aed975..140bf94e6a 100644 --- a/firmware/controllers/core/table_helper.cpp +++ b/firmware/controllers/core/table_helper.cpp @@ -32,6 +32,9 @@ void setTableBin(float array[], int size, float from, float to) { setTableBin2(array, size, from, to, 0.01); } +/** + * initialize RPM table axis using default RPM range + */ void setRpmTableBin(float array[], int size) { setRpmBin(array, size, 800, 7000); } diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index 23c4c363fd..69766128b0 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -680,7 +680,7 @@ void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) addConsoleAction("knockinfo", getKnockInfo); } -#if EFI_PROD_CODE +#if EFI_PROD_CODE || defined(__DOXYGEN__) addConsoleAction("reset_accel", resetAccel); #endif /* EFI_PROD_CODE */ diff --git a/firmware/controllers/math/engine_math.cpp b/firmware/controllers/math/engine_math.cpp index c5a3d56857..a0174f69e8 100644 --- a/firmware/controllers/math/engine_math.cpp +++ b/firmware/controllers/math/engine_math.cpp @@ -576,6 +576,7 @@ void setFlatInjectorLag(float value DECLARE_ENGINE_PARAMETER_SUFFIX) { setArrayValues(engineConfiguration->injector.battLagCorr, VBAT_INJECTOR_CURVE_SIZE, value); } +// todo: make this a macro void assertEngineReference(DECLARE_ENGINE_PARAMETER_SIGNATURE) { efiAssertVoid(engine != NULL, "engine is NULL"); }