필터 지우기
필터 지우기

Control vehicles velocity according to speed signs

조회 수: 3 (최근 30일)
Purvil Patel
Purvil Patel 2019년 11월 7일
답변: Sam Chak 2023년 4월 23일
I want to make a controller that takes value from traffic speed sign and control vehicles velocity according to speed signs. Requirements: vehicle run on pre defined maneuver speed until it detects speed sign on road. As soon as it detects speed sign, vehicle velocity should change to that value and continue until next sign detected.
How can I model? Please help me to get some idea. i am stuck at a point where traffic speed signs are out of the range of sensor. At that time vehicle velocity is going down instead of remain constant.

답변 (1개)

Sam Chak
Sam Chak 2023년 4월 23일
@Purvil Patel, Here is th basic idea.
Even though some speed limit signs maybe out of the sensor's range, the controller should be able to hold on the last detected speed limit.
Gp = tf(1, [1 1]);
t = linspace(0, 40, 4001);
u1 = 5*heaviside(t);
u2 = 2*heaviside(t - 10);
u3 = 1*heaviside(t - 20);
u4 = 2*heaviside(t - 30);
u = u1 - u2 + u3 - u4;
lsim(Gp, u, t)
grid on, ylim([0 6])

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by