trying to create collision avoidance logic in simulink but getting some errors in stateflow.

1 次查看(过去 30 天)
I have created logic for robot simulation using Stateflow diagram but getting some errors in it like transition conflicts:
Runtime error: Conflicting Transitions: Model Name: eight_sensor
Block Name: eight_sensor/Control logic
[front_sensor(1) == 1] #48 (0:1:0)
[front_sensor(2) == 1] #47 (0:1:0)
i am attaching my file below to see.
and another question is.... how to define sensor logic for the direction of sensor?
I defined sensors on robot at some angle and at radius r from the center of the robot. but it senses both the ways back side and front side. I just want to make it work front like real sensor. but i dont know how to define vector direction and compate it. please ...please ...please help me as soon as possible.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Complex Logic 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by