tSpeed down motors before reversing direction - lego_film_processor - software … | |
git clone git://src.adamsgaard.dk/lego_film_processor | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit e9da12db621e720b94560ee7b9d5d08388c631ee | |
parent 8e0862bf056160b4e9a57d212706acac2c9326a2 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 18 Jul 2019 19:58:05 +0200 | |
Speed down motors before reversing direction | |
Diffstat: | |
M lego_jobo.nqc | 10 +++++++++- | |
1 file changed, 9 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/lego_jobo.nqc b/lego_jobo.nqc | |
t@@ -17,8 +17,16 @@ main() | |
t_end = 60*DEVELOP_MINS + DEVELOP_SECS; | |
while (t_current < t_end) { | |
- Wait(T_TURN); | |
+ | |
+ SetPower(OUT_A, OUT_FULL); | |
+ Wait(T_TURN - 100); | |
+ | |
+ SetPower(OUT_A, 1); | |
+ Wait(50); | |
+ | |
Toggle(OUT_A); | |
+ Wait(50); | |
+ | |
t_current += T_TURN/100; | |
} | |
Off(OUT_A + OUT_B + OUT_C); |