Flow deck initiation

Firmware/software/electronics/mechanics
Post Reply
zhanghaijason
Member
Posts: 52
Joined: Fri Jul 28, 2017 9:07 pm

Flow deck initiation

Post by zhanghaijason »

Hello,
I have beeing using the flow deck to control the CF2. I am wondering if there is anything I can do to initiate the flow deck mode by changing parameters automatically instead of pressing the button on controller.

Thanks.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Flow deck initiation

Post by tobias »

Yes you can most likely do this by changing some code. However whats the context., do you fly manually or want to fly with scripts? If manually how would you like the take off/land functionality to work?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Flow deck initiation

Post by arnaud »

Hi,

What to do depends of what is your goal. If you want to make you Crazyflie autonomous, you can control the Crazyflie from a python script or by modifying the firmware itself.

Making a python script is the easiest and is most likely what you want to start with. In that case you will still have a computer controlling the Crazyflie using the radio but the control will be done autonomously by your script. There is a couple of example using the flow in the crazyflie lib example folder. The easiest being the motion commander demo and the lower level the flow seqence example. There is also the push example that works with the multiranger deck.

Making the Crazyflie fully autonomous is also possible but there is much less out of the box support for it. The easiest currently is to make a dummy deck driver and force its activation with a compile flag. We have an implementation of the multiranger push demo that works autonomously in the Crazyflie, it has been put in the Crazyflie experimental git repos. It could be used as a starting point if you want to make your Crazyflie completely autonomous.
zhanghaijason
Member
Posts: 52
Joined: Fri Jul 28, 2017 9:07 pm

Re: Flow deck initiation

Post by zhanghaijason »

tobias wrote: Tue Dec 18, 2018 9:54 am Yes you can most likely do this by changing some code. However whats the context., do you fly manually or want to fly with scripts? If manually how would you like the take off/land functionality to work?
Sorry for my late reply. I still want to control it manullay. And still want the take off/land work normally.
zhanghaijason
Member
Posts: 52
Joined: Fri Jul 28, 2017 9:07 pm

Re: Flow deck initiation

Post by zhanghaijason »

arnaud wrote: Tue Dec 18, 2018 10:07 am Hi,

What to do depends of what is your goal. If you want to make you Crazyflie autonomous, you can control the Crazyflie from a python script or by modifying the firmware itself.

Making a python script is the easiest and is most likely what you want to start with. In that case you will still have a computer controlling the Crazyflie using the radio but the control will be done autonomously by your script. There is a couple of example using the flow in the crazyflie lib example folder. The easiest being the motion commander demo and the lower level the flow seqence example. There is also the push example that works with the multiranger deck.

Making the Crazyflie fully autonomous is also possible but there is much less out of the box support for it. The easiest currently is to make a dummy deck driver and force its activation with a compile flag. We have an implementation of the multiranger push demo that works autonomously in the Crazyflie, it has been put in the Crazyflie experimental git repos. It could be used as a starting point if you want to make your Crazyflie completely autonomous.
Hi, thanks for your information. That's a big help for my future research with using the flow deck. Thanks a lot!
Post Reply