tSpeed down motors before reversing direction - lego_film_processor - software for rotary photographic film processor with Lego Mindstorms RCX
 (HTM) git clone git://src.adamsgaard.dk/lego_film_processor
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e9da12db621e720b94560ee7b9d5d08388c631ee
 (DIR) parent 8e0862bf056160b4e9a57d212706acac2c9326a2
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       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(-)
       ---
 (DIR) 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);