Drone Simulator Demo

Copyright (c) 2017, Mandar Chitre

This file is part of dronesim which is released under Simplified BSD License. See file LICENSE or go to http://www.opensource.org/licenses/BSD-3-Clause for full license details.

Developed at the National University of Singapore (NUS) as part of EG1112: Engineering Principles & Practice (EPP) II

Instructions

Ensure that you have vpython and transforms_3d modules installed.

To start the simulator, just run the following line:


In [1]:
from dronesim_setup1 import *


Here's an example of how to control the drone:


In [2]:
reset()
wind(0.1)
thrust(2.6,2.6,2.6,2.6)
while drone.altitude() < 5:
  delay(1)
thrust(2.3,2.45,2.6,2.45)
delay(6)
thrust(2.45,2.45,2.45,2.45)
delay(10)
thrust(2.45,2.3,2.45,2.6)
delay(6)
thrust(2.45,2.45,2.45,2.45)
delay(10)
thrust(0)
delay(10)

In [ ]: