Home > Back-end >  The accelerometer acquisition integration into speed displacement acceleration
The accelerometer acquisition integration into speed displacement acceleration

Time:04-28

Data interval bosses teach a 0.1 s,,,,,,,,,, how to write, c language, matlab can also

CodePudding user response:

A=[]; % acceleration value
x=0; % set initial displacement
T=0.01; % set sampling interval
Where v0=0.
% set initial speed
For I=2: length (a)
V=(a (I - 1) + a (I))/2 * T; % speed variation
V1=where v0 + v.
W (I)=v1;
X1=(v1 + where v0) * T/2;
X=x + x1;
Where v0=v1;
end

CodePudding user response:

The building Lord have a code? I also encountered this problem now

CodePudding user response:

The simplest is euler step n

CodePudding user response:

Someone do this? Have a code?
  • Related