[solved] Low-Level Control 3-Crazyflie with 1 Dongle

Discussions and questions about the Crazyradio
Post Reply
tungkstn95
Beginner
Posts: 3
Joined: Wed Jul 15, 2020 4:44 pm

[solved] Low-Level Control 3-Crazyflie with 1 Dongle

Post by tungkstn95 »

I am an beginner of researching into Crazyflies. I am doing the Formation Control, it means controlling multi-crazyflie with consensus, which is really different to the examples of swarm.
In this topic, I need to send the commander_setpoint (roll, pitch, yaw, thrust) to each Cf2. if the new command need to be send sent to Cf2 more than 500ms, the motors will be cut off.
I tried to send that command to 2-3 Cf2, the motors suddenly cut off after a few seconds.
Anyone faced that same problem?
Please give me an advice.
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Low-Level Control 3-Crazyflie with 1 Dongle

Post by kimberly »

Please checkout this documentation. It is due to the

Code: Select all

COMMANDER_WDT_TIMEOUT_SHUTDOWN
define probably.

You can look into how to use the high level commander. (and please let us know if the documentation is unclear about this. Its work in progress)
tungkstn95
Beginner
Posts: 3
Joined: Wed Jul 15, 2020 4:44 pm

Re: Low-Level Control 3-Crazyflie with 1 Dongle

Post by tungkstn95 »

Thanks for your reply. I have solved my problem related programming. After starting each Cf2 by a thread, I should use While loop (pass) in the end of the main loop.
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Low-Level Control 3-Crazyflie with 1 Dongle

Post by kimberly »

Great! thanks for letting us know
Post Reply