AEVDataExtraction-Group-C.xlsx
The Aev accelerated from 0% to 25% on all the motors for 3.0 seconds
The Aev runs for 1.0 seconds
The Aev speed is now 20% on all the motors
The Aev runs for 2.0 seconds
The Aev is now moving backwards
The Aev speed is now 25% on all the motors
The Aev runs for 2.0 seconds
Power stopped on all the motors
Arduino Code
celerate(4,0,25,3);
goFor(1);
motorSpeed(4,20);
goFor(2);
reverse(4);
motorSpeed(4,25);
goFor(2);
brake(4);
Matlab Code
clc
cleardata = readtable(‘AEVDataExtraction.xlsx’,…
‘Range’,’G8:O193′,…
‘ReadVariableNames’,true)plot(data.Time_s_, data.InputPower_W_);title(“Power vs. Time”);
xlabel(“Time (s)”);
ylabel(“Power (W)”);figure;
plot(data.Distance_m_, data.InputPower_W_);
title(“Power vs. Distance”);
xlabel(“Distance (m)”);
ylabel(“Power (W)”);
clc
cleardata = readtable(‘AEVDataExtraction.xlsx’,…
‘Range’,’G8:O193′,…
‘ReadVariableNames’,true)plot(data.Time_s_, data.InputPower_W_);title(“Power vs. Time”);
xlabel(“Time (s)”);
ylabel(“Power (W)”);figure;
plot(data.Distance_m_, data.InputPower_W_);
title(“Power vs. Distance”);
xlabel(“Distance (m)”);
ylabel(“Power (W)”);