فهرست منبع

Correct initialization of eISR_Err

Further tweak the initial term to improve the linearity of the resulting
speed after BW filtering.
Yuri D'Elia 5 سال پیش
والد
کامیت
b6bcb901f3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Firmware/stepper.cpp

+ 1 - 1
Firmware/stepper.cpp

@@ -846,7 +846,7 @@ FORCE_INLINE void isr() {
 
 #ifdef LIN_ADVANCE
     // avoid multiple instances or function calls to advance_spread
-    if (la_state & ADV_INIT) eISR_Rate = current_block->advance_rate / 2;
+    if (la_state & ADV_INIT) eISR_Err = current_block->advance_rate / 4;
     if (la_state & ADV_INIT || nextAdvanceISR != ADV_NEVER) {
         advance_spread(main_Rate);
         if (la_state & ADV_DECELERATE) {