Control vehicles velocity according to speed signs

2 ビュー (過去 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 Center および File ExchangeSimulink についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by