This commit is contained in:
rusefi 2018-02-25 21:59:15 -05:00
parent 051775bad2
commit 22d1c08ddc
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ static msg_t seThread(void *arg) {
chRegSetThreadName("servo");
while (true) {
pin.setValue(1);
float durationMs = 1.3;
percent_t position = 10 * (getTimeNowSeconds() % 10);
float durationMs = 1 + position * 0.01;
scheduleForLater(&servoTurnSignalOff, (int)MS2US(durationMs), (schfunc_t) &servoTachPinLow, NULL);