i can run vtol example

조회 수: 3 (최근 30일)
hamed farajzadeh
hamed farajzadeh 2024년 4월 9일
답변: Piyush Kumar 2024년 7월 24일
hello
i want to run vtol example but i cant . i allways recive this error:
=== Simulation (Elapsed: 38 sec) ===
Error:Variant control 'TestMode==1' used by block 'VTOLTiltrotor/Guidance Test Bench/ControlType' must return a logical value.
Caused by:
Unrecognized function or variable 'TestMode'.
Variable 'TestMode' does not exist.
Suggested Actions:
Load a file into base workspace.
Create a new variable.
Error:Variant control 'TestMode==0' used by block 'VTOLTiltrotor/Guidance Test Bench/ControlType' must return a logical value.
Caused by:
Unrecognized function or variable 'TestMode'.
Variable 'TestMode' does not exist.
Suggested Actions:
Load a file into base workspace.
Create a new variable.
what can i do?

답변 (1개)

Piyush Kumar
Piyush Kumar 2024년 7월 24일
Please define "TestMode" variable in the base workspace and run the Simulation again.
TestMode = 1; % depending on your needs, may be 0
If you are trying to tune Control Design for VTOL UAV in Hover Configuration, please check this link.

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by