from flightplans import drone
from properties import HOME
import time

# def main():
#     drone1 = drone.drone(HOME)
#     drone1.bebop.connect(10)
#     drone1.bebop.ask_for_state_update()

#     def sensorCallback(drone):
#         print("bebop.sensors.attitude: " + str(drone.bebop.sensors.sensors_dict["AltitudeChanged_altitude"]))

#     drone1.bebop.set_user_sensor_callback(sensorCallback, drone1)
#     drone1.bebop.safe_takeoff(10)
#     time.sleep(10)
#     drone1.bebop.safe_land(10)
def sensorCallback(drone):
	print("bebop.sensors.altitude: " + str(drone.bebop.sensors.sensors_dict["AltitudeChanged_altitude"]))

def main():
    drone1 = drone.drone(HOME)
    drone1.bebop.connect(10)
    drone1.bebop.ask_for_state_update()
    drone1.bebop.set_user_sensor_callback(sensorCallback, drone1)
    drone1.bebop.safe_takeoff(10)
    time.sleep(10)
    drone1.bebop.safe_land(10)

main()
6b7edd696aa5819b2ec98db692865482426313ab
<mask token>


def sensorCallback(drone):
    print('bebop.sensors.altitude: ' + str(drone.bebop.sensors.sensors_dict
        ['AltitudeChanged_altitude']))


<mask token>

<mask token>


def sensorCallback(drone):
    print('bebop.sensors.altitude: ' + str(drone.bebop.sensors.sensors_dict
        ['AltitudeChanged_altitude']))


def main():
    drone1 = drone.drone(HOME)
    drone1.bebop.connect(10)
    drone1.bebop.ask_for_state_update()
    drone1.bebop.set_user_sensor_callback(sensorCallback, drone1)
    drone1.bebop.safe_takeoff(10)
    time.sleep(10)
    drone1.bebop.safe_land(10)


<mask token>

<mask token>


def sensorCallback(drone):
    print('bebop.sensors.altitude: ' + str(drone.bebop.sensors.sensors_dict
        ['AltitudeChanged_altitude']))


def main():
    drone1 = drone.drone(HOME)
    drone1.bebop.connect(10)
    drone1.bebop.ask_for_state_update()
    drone1.bebop.set_user_sensor_callback(sensorCallback, drone1)
    drone1.bebop.safe_takeoff(10)
    time.sleep(10)
    drone1.bebop.safe_land(10)


main()

from flightplans import drone
from properties import HOME
import time


def sensorCallback(drone):
    print('bebop.sensors.altitude: ' + str(drone.bebop.sensors.sensors_dict
        ['AltitudeChanged_altitude']))


def main():
    drone1 = drone.drone(HOME)
    drone1.bebop.connect(10)
    drone1.bebop.ask_for_state_update()
    drone1.bebop.set_user_sensor_callback(sensorCallback, drone1)
    drone1.bebop.safe_takeoff(10)
    time.sleep(10)
    drone1.bebop.safe_land(10)


main()

from flightplans import drone
from properties import HOME
import time

# def main():
#     drone1 = drone.drone(HOME)
#     drone1.bebop.connect(10)
#     drone1.bebop.ask_for_state_update()

#     def sensorCallback(drone):
#         print("bebop.sensors.attitude: " + str(drone.bebop.sensors.sensors_dict["AltitudeChanged_altitude"]))

#     drone1.bebop.set_user_sensor_callback(sensorCallback, drone1)
#     drone1.bebop.safe_takeoff(10)
#     time.sleep(10)
#     drone1.bebop.safe_land(10)
def sensorCallback(drone):
	print("bebop.sensors.altitude: " + str(drone.bebop.sensors.sensors_dict["AltitudeChanged_altitude"]))

def main():
    drone1 = drone.drone(HOME)
    drone1.bebop.connect(10)
    drone1.bebop.ask_for_state_update()
    drone1.bebop.set_user_sensor_callback(sensorCallback, drone1)
    drone1.bebop.safe_takeoff(10)
    time.sleep(10)
    drone1.bebop.safe_land(10)

main()