error in task 6 of robotic vacuum stateflow

20 views (last 30 days)
andre
andre on 24 Aug 2024
Commented: Himanshu Dhande on 12 Feb 2025 at 21:06
says that the transition is not correct, but is the same as the solution

Answers (2)

Divyajyoti Nayak
Divyajyoti Nayak on 26 Aug 2024
Hi @andre,
I understand that you are going through the ‘Stateflow Onramp’ course and facing this issue.
I went through this section of the course and found that your transition from ‘Vacuum’ state to ‘SeekDock’ state is incorrect as you have used the AND operator (&&) instead of the OR operator (||) for the transition condition.

Srinivasan
Srinivasan on 13 Jan 2025
Hello, I'm also facing the same issue even though, I used the OR (||) operator.
  1 Comment
Himanshu Dhande
Himanshu Dhande on 12 Feb 2025 at 21:06
I faced the similar issue while completing this course. Check if the condition defined is [requestMode == 1 || complete == 1]. Make sure the brackets and the OR (||) are used/placed correctly.

Sign in to comment.

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!