Skip to content

Commit

Permalink
Add trim after a takeoff.
Browse files Browse the repository at this point in the history
  • Loading branch information
thavel committed Jun 18, 2016
1 parent bf3c688 commit 50cb9c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions aioparrot/ardrone/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 50cb9c8

Please sign in to comment.