Hello,
I am trying to use the Betaflight SITL in my own simulator and as a first step tried to connect to the SITL using the Betaflight Configurator.
I tried the following:
- Download Betaflight from the Github release page (version 4.5.1 and 4.5.0)
- Build the SITL using the commands:
make arm_sdk_install && make TARGET=SITL - Run the SITL:
./betaflight_SITL.elf
[SITL] The SITL will output to IP 127.0.0.1:9002 (Gazebo) and 127.0.0.1:9001 (RealFlightBridge)
[system]Init...
[SITL] init PwmOut UDP link to gazebo 127.0.0.1:9002...0
[SITL] init PwmOut UDP link to RF9 127.0.0.1:9001...0
[SITL] start UDP server @9003...0
[SITL] start UDP server for RC input @9004...0
[FLASH_Unlock] loaded 'eeprom.bin', size = 32768 / 32768
[timer]Init...
bind port 5761 for UART1
debugInit
unusedPinsInit
- Start the proxy (but as far as I understand its only necessary when using the online configurator?)
./websockify 127.0.0.1:6761 127.0.0.1:5761
Warning: 'self.pem' not found
Waiting for connections on 127.0.0.1:6761
- Trying to connect to the SITL using the Betaflight Configurator:
(see screenshot)
But it simply states:
2025-01-07 @12:58:26 -- Chrome API Error: Failed to connect to the port..
2025-01-07 @12:58:26 -- Failed to open serial port
The same error message appears whether I use port 5761 directly or port 6761.
In the webinterface I don't see any option to choose websocket as a possibility to connect to the running SITL instance. I am only able to select USB devices but cannot write down a connection string manually.
Did I do something wrong in setting up the SITL/ configurator or is my connection string incorrect?