mirror of https://github.com/rusefi/rusefi.git
little bit of real vvt data
This commit is contained in:
parent
d89c1f0a54
commit
24bf593d6c
|
@ -58,6 +58,8 @@ expected<angle_t> VvtController::getSetpoint() {
|
|||
engine->outputChannels.vvtTargets[index] = target;
|
||||
#endif
|
||||
|
||||
vvtTarget = target;
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
|
@ -100,6 +102,8 @@ void VvtController::setOutput(expected<percent_t> outputValue) {
|
|||
&& engine->rpmCalculator.getSecondsSinceEngineStart(getTimeNowNt()) > engineConfiguration->vvtActivationDelayMs / MS_PER_SECOND
|
||||
;
|
||||
|
||||
vvtOutput = outputValue.value_or(0);
|
||||
|
||||
if (outputValue && enabled) {
|
||||
m_pwm.setSimplePwmDutyCycle(PERCENT_TO_DUTY(outputValue.Value));
|
||||
} else {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
struct_no_prefix vvt_s
|
||||
int vvt_placeholder
|
||||
uint16_t autoscale vvtTarget;;"deg", 0.1, 0, -90, 90, 1
|
||||
uint8_t autoscale vvtOutput;;"%", 0.5, 0, 100, 1
|
||||
end_struct
|
||||
|
|
Loading…
Reference in New Issue