error in task 6 of robotic vacuum stateflow

24 ビュー (過去 30 日間)
andre
andre 2024 年 8 月 24 日
編集済み: Srinivasan 2025 年 2 月 17 日 12:01
says that the transition is not correct, but is the same as the solution

回答 (2 件)

Divyajyoti Nayak
Divyajyoti Nayak 2024 年 8 月 26 日
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 2025 年 1 月 13 日
Hello, I'm also facing the same issue even though, I used the OR (||) operator.
  2 件のコメント
Himanshu Dhande
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
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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by