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

1 view (last 30 days)
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.

Answers (0)

Categories

Find more on Complex Logic 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!