I am trying to get ArduCopter running on Mamba H743 MK4, but run into various issues. For instance, it doesn’t detect the barometer and fails. The FC itself is not defective and works fine with iNav. As I know, different versions of this board have different hardware. Mine has the SPL06 barometer according to iNav: https://imgur.com/a/DdrTxgQ
Additionally, the Mission Planner hangs when trying to calibrate accelerometer, then disconnects and can’t connect again with the “Connect Failed” error until I reboot the FC. Log: https://imgur.com/a/0BUvROC
Is my FC supported by ArduCopter? And if so, how do I get it to work? Can you manually select the barometer type somewhere in the settings or is it hard-coded for each FC?
Additionally, I am experiencing some heavy connection issues. I have to reconnect the USB cable or restart the programs multiple times before I can finally connect to the FC via Mission Planner or MAVProxy:
Auto-detected serial ports are:
COM4 : MambaH743v4 (COM4) : USB VID:PID=1209:5741 SER=3D0033000A51303230393433 LOCATION=1-2
Connecting to COM4 : MambaH743v4 (COM4) : USB VID:PID=1209:5741 SER=3D0033000A51303230393433 LOCATION=1-2
Connect COM4 source_system=255
Failed to connect to COM4 : [Errno 13] Permission denied: 'COM4'
Or sometimes:
Auto-detected serial ports are:
COM4 : MambaH743v4 (COM4) : USB VID:PID=1209:5741 SER=3D0033000A51303230393433 LOCATION=1-2
Connecting to COM4 : MambaH743v4 (COM4) : USB VID:PID=1209:5741 SER=3D0033000A51303230393433 LOCATION=1-2
Connect COM4 source_system=255
Loaded module console
Running script (C:\Users\user\AppData\Local\.mavproxy\mavinit.scr)
Loaded module help
Unknown command 'graph timespan 30'
Log Directory:
Telemetry log: mav.tlog
Waiting for heartbeat from COM4
Device COM4 is dead
Device COM4 reopened OK
Detected vehicle 1:1 on link 0
Received 1066 parameters (ftp)
Saved 1066 parameters to mav_0_1.parm
Received 1066 parameters (ftp)
Saved 1066 parameters to mav.parm
Exception in thread main_loop:
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "mavproxy.py", line 1096, in main_loop
File "serial\serialutil.py", line 594, in inWaiting
File "serial\serialwin32.py", line 259, in in_waiting
serial.serialutil.SerialException: ClearCommError failed (PermissionError(13, 'The device does not recognize the comman)
STABILIZE>
One thing to note. These boards are known to have power issues when running on USB - in particular there is often not enough power on i2c if you have other things connected. If you are only testing on USB it is worth connecting a battery to see if the problem goes away.