Function calc_ax_poss

Function Documentation

double calc_ax_poss(double vx_start, double radius, const arma::mat &ggv, double mu, double dyn_model_exp, double drag_coeff, double m_veh, const arma::mat &ax_max_machines, const string &mode)

Not to be called outside of the speed profile source code. Calculate the possible acceleration for a point in the raceline.

Parameters:
  • vx_start – current velocity of the point

  • radius – current curvature of the point in radii

  • ggv – ggv profile

  • mu – friction coefficients

  • dyn_model_exp – exponent used in the vehicle dynamics model

  • drag_coeff – drag coefficient

  • m_veh – vehicle mass in kg

  • ax_max_machines – longitudinal acceleration limits by the electrical motors: [vx, ax_max_machines]. Velocity in m/s, accelerations in m/s2.

  • mode – either “accel_forw” for forward calculation or “decel_backw” for backwards calculation

Returns:

double acceleration