update roller2

+ onoff==2 mode: timed torque driving. (use X1 extra. para.)
This commit is contained in:
Dooho Yi 2022-06-11 18:56:48 +09:00
parent f2fbd68bf5
commit dcd149b878

View file

@ -252,6 +252,9 @@ void onNoteHandler(Note & n) {
watch_counter = 0;
} else if (n.onoff == 0) {
rest_task.restartDelayed(10);
} else if (n.onoff == 2) {
set_speed_task.restartDelayed(10);
rest_task.restartDelayed(10 + n.x1);
}
}
//
@ -263,6 +266,9 @@ void onNoteHandler(Note & n) {
watch2_counter = 0;
} else if (n.onoff == 0) {
rest2_task.restartDelayed(10);
} else if (n.onoff == 2) {
set_speed2_task.restartDelayed(10);
rest2_task.restartDelayed(10 + n.x1);
}
}
//