In this coding of MATLAB, the given gear ration only have 2, and to find wheel s
ID: 2087228 • Letter: I
Question
In this coding of MATLAB, the given gear ration only have 2, and to find wheel speed,w1 and w2, are based on the gear ratios (gear1, gear 2), transmission reduction(R_reduct) and the cycle is cycle(i,10) = (cycle(i,2)/(pi*dia))*60; .
How can I modify this coding to calculate for 4 wheel speeds by means to have 4 different gear ratio, and the condition is not based on the engine max but the current speed? As in the example below, it only has two gear ratio to find two wheel speed by making a condition based on the engine max either to be greater or lesser.
Explanation / Answer
% based upon minimizing the rotational speed of the hydraulic components, % thereby minimizing the power flow through them.
function [gear] = Gear(i, cycle, gear1, gear2, gear3, gear4, R_Reduct, E_current)
w1 = cycle(i,10)*R_Recluct*gear1;
w2 = cycle(i,10)*R_Recluct*gear2:
w3 = cycle(i,10)*R_Recluct*gear3:
w4 = cycle(i,10)*R_Recluct*gear4:
if w1 < E_current
gear = gear1;
elseif w2 < E_current
gear = gear2;
elseif w3 < E_current
elseif gear = gear3;
elseif w4 < E_current
gear = gear4;
else
gear = -1
sPrintf (‘Engine Speed Reached at Time Step: %i Requested engine speed: %i Current engine speed: %i’, i, w4, E_current)
end
if cycle(1,10) == 0;
gear = 0;
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.