function sd = stopDistance (grossMass, speed, rollingDiam, numBrakingWheels, brakeTorque )

% variable: grossWeight      double  input   description="gross vehicle weight"  units=“kg”
% variable: speed            double  input   description="initial speed of vehicle"  units=“km/h”
% variable: rollingDiam      double  input   description="rolling diameter of tires"  units="inches"
% variable: tireMu           double  input   default=0.9   description="friction coefficient of tires on dry pavement"
% variable: numBrakingWheels double  input   default=4     description="number of braking wheels on vehicle"
% variable: brakeTorque      double  input   description="torque applied by brake"  units=“m/kg”
% variable: stopTime         double  output  description="time required for vehicle to stop from initial speed" units="seconds"
% variable: stopDistance     double  output  description="distance required for vehicle to stop from initial speed"  units=“meter”


force = 2 * numBrakingWheels * (brakeTorque)/(0.0254*rollingDiam/2);
sd = ((speed*1000/3600)*(speed*1000/3600))/(2*(force/grossMass));

end
