Effacer les filtres
Effacer les filtres

Velocity feedback from vehicle body is coming out to be negative

4 vues (au cours des 30 derniers jours)
Chetanvir Singh
Chetanvir Singh le 24 Mai 2022
I am trying to simulate a vehicle model using vehicle body block. I created the vehicle subsystem using some SIMULINK by connecting motor rotational output to tires(magic formula) and tires to vehicle body and the subsystem to motor, H-bridge and giving drive cycle to get the velocity output. But when I try to simulate model my velocity is going in negative Y axis. I tried changing the solver parameters but didn’t work. I've tried starting from scratch and rechecked my connections so many times but nothing. I've no idea why this keeps happening. I've even tried it on both online and downloaded versions.
Please Help!
  6 commentaires
Sam Chak
Sam Chak le 25 Mai 2022
I see. Then you probably have to go back to the fundamentals: the governing math of the system or algorithm of the control block. Almost everything can be explained once you identify culprit behind the math.
Chetanvir Singh
Chetanvir Singh le 25 Mai 2022
Thank you so much for your time and help. I'll check the algorithm and block specifications and then try!

Connectez-vous pour commenter.

Réponses (1)

Steve Miller
Steve Miller le 9 Mai 2023
Without looking at the model directly it is hard to be sure. Given the top speed is reached pretty quickly, I suspect your powertrain is turning the wheels in the wrong direction. The error increases, the powertrain drives the car as fast as it can until drag prevents it from accelerating any faster.
Solution: check the setting on your gear block. Setting "Output shaft rotates" is probably set to "In opposite direction to input shaft". Set it to "In same direction as input shaft".
--Steve

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by