Negative velocity curve from vehicle body block

1 view (last 30 days)
I am trying to simulate a vehicle model using vehicle body block. I created the vehicle subsystem using some MathWorks references by connecting motor rotational output to tires(magic formula) and tires to vehicle body to get the velocity output. But when I try to simulate model my velocity is going in -Y axis. I tried changing the solver parameters but didn’t work. All of sudden, when I deleted the entire vehicle body sub system and recreated it l, I am getting the required output. What is the issue here ? Thanks in Advance!

Answers (1)

Martin
Martin on 14 Jul 2021
Hi Vinay,
It is difficult to say what happened, but it looks like recreating the subsystem worked. It may be possible that something was inadvertently wired backwards.

Categories

Find more on Vehicle Scenarios in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!