CJ125 unit-tests coverage #617

This commit is contained in:
rusefi 2018-11-03 13:27:48 -04:00
parent 5d5c80a8a1
commit 0af290c381
3 changed files with 10 additions and 2 deletions

View File

@ -35,7 +35,6 @@
#include "global.h"
#include "engine.h"
#include "settings.h"
#include "pin_repository.h"
#include "hardware.h"
#include "rpm_calculator.h"
#include "trigger_central.h"
@ -45,6 +44,10 @@
#include "efilib2.h"
#include "engine_controller.h"
#if EFI_PROD_CODE
#include "pin_repository.h"
#endif
#if EFI_HIP_9011 || defined(__DOXYGEN__)
static NamedOutputPin intHold(HIP_NAME);
@ -252,7 +255,7 @@ static void intHoldCallback(trigger_event_e ckpEventType, uint32_t index DECLARE
(schfunc_t) &startIntegration, NULL, &engine->rpmCalculator);
#if EFI_PROD_CODE
hipLastExecutionCount = lastExecutionCount;
#endif
#endif /* EFI_PROD_CODE */
scheduleByAngle(rpm, &endTimer[structIndex], engineConfiguration->knockDetectionWindowEnd,
(schfunc_t) &endIntegration,
NULL, &engine->rpmCalculator);

View File

@ -590,6 +590,8 @@ bool cjHasAfrSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
return true;
}
#if EFI_TUNER_STUDIO || defined(__DOXYGEN__)
// used by DBG_CJ125
void cjPostState(TunerStudioOutputChannels *tsOutputChannels) {
tsOutputChannels->debugFloatField1 = heaterDuty;
@ -602,6 +604,7 @@ void cjPostState(TunerStudioOutputChannels *tsOutputChannels) {
tsOutputChannels->debugIntField1 = state;
tsOutputChannels->debugIntField2 = diag;
}
#endif /* EFI_TUNER_STUDIO */
void initCJ125(Logging *sharedLogger) {
logger = sharedLogger;

View File

@ -175,7 +175,9 @@ typedef enum {
void initCJ125(Logging *shared);
#if EFI_TUNER_STUDIO || defined(__DOXYGEN__)
void cjPostState(TunerStudioOutputChannels *tsOutputChannels);
#endif
float cjGetAfr(DECLARE_ENGINE_PARAMETER_SIGNATURE);
bool cjHasAfrSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE);
void cj125defaultPinout();