No BSD License  

Highlights from
Framework for differential steering vehicle

image thumbnail
from Framework for differential steering vehicle by Paolo Di Prodi
A framework for a differential steering vehicle controlled by a PID system tuned with a genetic algo

getSimpsonIntervalsStart(ar,al,vr,vl,bw,x)
%% Author: epokh
%% Website: www.epokh.org/drupy
%% This software is under GPL



function steps= getSimpsonIntervalsStart(ar,al,vr,vl,bw,x)
%%This function compute the number of simpson intervals for the
%% first step of the simulation


           A = (al + ar) /2;
           B = (vl + vr) /2;
           C = (ar - al) /(2 * bw);
           D = (vr - vl) / bw;

           steps=get_simpson_intervals(A, B, C, D, x);
end

Contact us at files@mathworks.com