int LimitSpeed( int in) { static int out; in=in-out; if(in>LimitP)in= LimitP; if(in<LimitN)in= LimitN; out=out+in; return out; }
int LimitSpeed( int in)
{
static int out;
in=in-out;
if(in>LimitP)in= LimitP;
if(in<LimitN)in= LimitN;
out=out+in;
return out;
}