logging of live data structs was: data points #3614

This commit is contained in:
rusefillc 2022-06-29 01:49:48 -04:00
parent ef6bef1b82
commit 241f2765e9
2 changed files with 2 additions and 11 deletions

View File

@ -85,14 +85,6 @@ bool LaunchControlBase::isLaunchConditionMet(int rpm) {
speedCondition = isInsideSpeedCondition();
tpsCondition = isInsideTpsCondition();
#if EFI_TUNER_STUDIO
// todo: implement fancy logging of all live data
engine->outputChannels.launchSpeedCondition = speedCondition;
engine->outputChannels.launchRpmCondition = rpmCondition;
engine->outputChannels.launchTpsCondition = tpsCondition;
engine->outputChannels.launchActivateSwitchCondition = activateSwitchCondition;
#endif /* EFI_TUNER_STUDIO */
return speedCondition && activateSwitchCondition && rpmCondition && tpsCondition;
}
@ -110,7 +102,7 @@ void LaunchControlBase::update() {
combinedConditions = isLaunchConditionMet(rpm);
//and still recalculate in case user changed the values
retardThresholdRpm = engineConfiguration->launchRpm + (engineConfiguration->enableLaunchRetard ?
retardThresholdRpm = engineConfiguration->launchRpm + (engineConfiguration->enableLaunchRetard ?
engineConfiguration->launchAdvanceRpmRange : 0) + engineConfiguration->hardCutRpmRange;
if (!combinedConditions) {
@ -124,8 +116,6 @@ void LaunchControlBase::update() {
#if EFI_TUNER_STUDIO
engine->outputChannels.clutchDownState = engine->clutchDownState;
engine->outputChannels.launchIsLaunchCondition = isLaunchCondition;
engine->outputChannels.launchCombinedConditions = combinedConditions;
#endif /* EFI_TUNER_STUDIO */
}

View File

@ -70,6 +70,7 @@ Usages:
- name: engine_state
java: EngineState.java
folder: controllers/algo
prepend: integration/rusefi_config.txt
- name: tps_accel_state
java: TpsAccelState.java