mirror of https://github.com/rusefi/rusefi-1.git
logging of live data structs was: data points #3614
This commit is contained in:
parent
ef6bef1b82
commit
241f2765e9
|
@ -85,14 +85,6 @@ bool LaunchControlBase::isLaunchConditionMet(int rpm) {
|
||||||
speedCondition = isInsideSpeedCondition();
|
speedCondition = isInsideSpeedCondition();
|
||||||
tpsCondition = isInsideTpsCondition();
|
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;
|
return speedCondition && activateSwitchCondition && rpmCondition && tpsCondition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +102,7 @@ void LaunchControlBase::update() {
|
||||||
combinedConditions = isLaunchConditionMet(rpm);
|
combinedConditions = isLaunchConditionMet(rpm);
|
||||||
|
|
||||||
//and still recalculate in case user changed the values
|
//and still recalculate in case user changed the values
|
||||||
retardThresholdRpm = engineConfiguration->launchRpm + (engineConfiguration->enableLaunchRetard ?
|
retardThresholdRpm = engineConfiguration->launchRpm + (engineConfiguration->enableLaunchRetard ?
|
||||||
engineConfiguration->launchAdvanceRpmRange : 0) + engineConfiguration->hardCutRpmRange;
|
engineConfiguration->launchAdvanceRpmRange : 0) + engineConfiguration->hardCutRpmRange;
|
||||||
|
|
||||||
if (!combinedConditions) {
|
if (!combinedConditions) {
|
||||||
|
@ -124,8 +116,6 @@ void LaunchControlBase::update() {
|
||||||
|
|
||||||
#if EFI_TUNER_STUDIO
|
#if EFI_TUNER_STUDIO
|
||||||
engine->outputChannels.clutchDownState = engine->clutchDownState;
|
engine->outputChannels.clutchDownState = engine->clutchDownState;
|
||||||
engine->outputChannels.launchIsLaunchCondition = isLaunchCondition;
|
|
||||||
engine->outputChannels.launchCombinedConditions = combinedConditions;
|
|
||||||
#endif /* EFI_TUNER_STUDIO */
|
#endif /* EFI_TUNER_STUDIO */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,7 @@ Usages:
|
||||||
- name: engine_state
|
- name: engine_state
|
||||||
java: EngineState.java
|
java: EngineState.java
|
||||||
folder: controllers/algo
|
folder: controllers/algo
|
||||||
|
prepend: integration/rusefi_config.txt
|
||||||
|
|
||||||
- name: tps_accel_state
|
- name: tps_accel_state
|
||||||
java: TpsAccelState.java
|
java: TpsAccelState.java
|
||||||
|
|
Loading…
Reference in New Issue