diff --git a/aioparrot/ardrone/client.py b/aioparrot/ardrone/client.py index 0b94dca..04704bd 100644 --- a/aioparrot/ardrone/client.py +++ b/aioparrot/ardrone/client.py @@ -117,6 +117,7 @@ async def takeoff(self): data = self._factory.takeoff() self.send(data) await asyncio.sleep(5) + self.trim() async def land(self): data = self._factory.land() diff --git a/debug.py b/debug.py index 9e2d91d..54eaeba 100644 --- a/debug.py +++ b/debug.py @@ -31,7 +31,8 @@ async def main(): log.info("Launching the drone") await client.start() await client.takeoff() - await client.forward(2) + await client.forward(1) + await client.backward(1) await client.land() await client.stop() log.info("Mission completed")