selfcheck.py: check CBRK_USB_CHK parameter

This commit is contained in:
Oleg Kalachev
2019-08-14 00:14:14 +03:00
parent 2859f7c68d
commit 35bf315227

View File

@@ -236,6 +236,10 @@ def check_fcu():
except KeyError:
failure('unknown board rotation %s', rot)
cbrk_usb_chk = get_param('CBRK_USB_CHK')
if cbrk_usb_chk != 197848:
failure('Set parameter CBRK_USB_CHK to 197848 for flying with USB connected')
except rospy.ROSException:
failure('no MAVROS state (check wiring)')