error in task 6 of robotic vacuum stateflow
24 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1759359/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1759364/image.png)
0 件のコメント
回答 (2 件)
Divyajyoti Nayak
2024 年 8 月 26 日
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.
0 件のコメント
Srinivasan
2025 年 1 月 13 日
Hello, I'm also facing the same issue even though, I used the OR (||) operator.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1823180/image.png)
2 件のコメント
Himanshu Dhande
2025 年 2 月 12 日 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.
Srinivasan
2025 年 2 月 17 日 12:00
編集済み: Srinivasan
2025 年 2 月 17 日 12:01
Yes, My isssue has been resolved now, need to connect [SOC >=97] from the Charge state not the SeekDock state.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!