-
Notifications
You must be signed in to change notification settings - Fork 87
cant seem to get sendCMD to work #36
Copy link
Copy link
Open
Description
hi, i'm using a F4 flight controller, i set the necessary settings in betaflight, and can read the imu and attitude from the FC, however when i try using the sendCMD i get the following error:
Error on Main: pack expected 18 items for packing (got 26)
this is the code i'm trynig:
data = [1500,1500,1000,1500,2000,1000,1000,1000] #roll/pitch/throttle/yaw/Aux1/2/3/4
for i in range(len(data)):
binary = '{0:016b}'.format(data[i])
data.append(int(binary[8:], 2))
data.append(int(binary[:8], 2))
self.sendCMD(16,MultiWii.SET_RAW_RC,data,'16B')
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels