Skip to content

ardrone.reset() function seems not to work. #5

@dawid2193487

Description

@dawid2193487

According to the documentation, .reset() should toggle between normal and emergency states.

After restarting the drone I execute this code

print "Importing ardrone"
import ardrone

print "Done."

drone = ardrone.ARDrone()

time.sleep(1.0)
drone.takeoff()
time.sleep(3.0)
drone.hover()
time.sleep(7.0)
drone.move_left()
time.sleep(1.0)
drone.land()
time.sleep(1.0)

drone.halt()

and it works perfectly fine the first time. The drone is in emergency state after landing, indicated by the diodes turning red.

I attempt to get it back to a working state by executing this script

drone = ardrone.ARDrone()

drone.reset()
time.sleep(1.0)

drone.halt()

However, the drone remains in emergency state. Only way to get it out of it is to power cycle it. I haven't attempted toggling emergency off with the mobile app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions