I'm performing SITL on Windows 11 with jmavsim using UAV Toolbox Support Package for PX4 Autopilots but I got an error:
On the diagnostic view I got:
Top model targets built: Model Action Rebuild Reason ==================================================================================
openloop_2022b Code generated. Global variable px4_Bus_actuator_armed changed. 1 of 1 models built (0 models already up to date) Build duration: 0h 2m 11.97s
action: EXT_INIT Creating Target Handler (XCP on TCP/IP)... Build directory: D:\model validation\matlab2022b\openloop_2022b_ert_rtw Target name: 127.0.0.1 Target port: 17725 action: EXT_CONNECT Connecting to the target...
External Mode Open Protocol Connect command failed
Caused by:
- Could not connect to target application: XCP TCP/IP error: Connect failed
Component:Simulink | Category:Block diagram error
Unable to connect to the 'PX4 Host Target' target for 'openloop_2022b'. On the cmd, I got: