Skip to content

motion commanderf wo context manager fails on reconnect. #419

@knmcguire

Description

@knmcguire

Discussed in https://github.com/orgs/bitcraze/discussions/969

Originally posted by dbaldwin October 14, 2023
Hi,

I'm working my way through CRTP by using the motion_commander_demo.py example as a reference. I've modified the script to do a basic takeoff and land like this in this code snippet:

mc = MotionCommander(scf)
mc.take_off()
time.sleep(5)
mc.land()

It works well but for some reason if I run it again Crazyflie will ignore any packets. I have to restart my drone to get the script to work again. I've experienced this behavior with two different Crazyflies. Is there something I should be checking/resetting to get it to run subsequent times?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions