Welcome! Log In Create A New Profile

Advanced

what is the purpose of "smaller_speed_factor "?

Posted by Roydudu 
what is the purpose of "smaller_speed_factor "?
August 20, 2020 03:43PM
Hi, what is the purpose of "smaller_speed_factor "? in planner.c. This factor, only resize the previous speeds when the nominal_speed is smaller than previous_nominal_speed, that is, slowing down. Here there is the code:
vmax_junction = _MIN(nominal_speed, previous_nominal_speed);

      // Now limit the jerk in all axes.
      const float smaller_speed_factor = vmax_junction / previous_nominal_speed;  
     
      LOOP_XYZE(axis)
      {
        // Limit an axis. We have to differentiate: coasting, reversal of an axis, full stop.
        float v_exit = previous_speed[axis] * smaller_speed_factor,
              v_entry = current_speed[axis];

Thanks!
Re: what is the purpose of "smaller_speed_factor "?
August 21, 2020 08:11AM
Here, is there possibility to assign a vmax_junction greater than the previous_nominal_speed?

if (previous_safe_speed > vmax_junction_threshold && safe_speed > vmax_junction_threshold)
        vmax_junction = safe_speed;
Sorry, only registered users may post in this forum.

Click here to login