Page 1 of 1

Flow deck initiation

Posted: Fri Dec 14, 2018 8:24 pm
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.

Re: Flow deck initiation

Posted: Tue Dec 18, 2018 9:54 am
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?

Re: Flow deck initiation

Posted: Tue Dec 18, 2018 10:07 am
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.

Re: Flow deck initiation

Posted: Mon Jan 21, 2019 7:32 pm
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.

Re: Flow deck initiation

Posted: Mon Jan 21, 2019 7:32 pm
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!