diff --git a/cflib/crazyflie/commander.py b/cflib/crazyflie/commander.py index 1529e82da..82377dc1a 100644 --- a/cflib/crazyflie/commander.py +++ b/cflib/crazyflie/commander.py @@ -47,6 +47,7 @@ TYPE_VELOCITY_WORLD = 8 TYPE_ZDISTANCE = 9 TYPE_HOVER = 10 +TYPE_MANUAL = 11 TYPE_META_COMMAND_NOTIFY_SETPOINT_STOP = 0 @@ -232,3 +233,26 @@ def send_position_setpoint(self, x, y, z, yaw): pk.data = struct.pack(' 100 or thrust_percentage < 0: + raise ValueError('Thrust percentage must be between 0 and 100') + + thrust = 10001 + 0.01 * thrust_percentage * (60000 - 10001) + thrust_16 = struct.unpack('