crazyflies are not stable

Post here to get support
Post Reply
azamali
Beginner
Posts: 3
Joined: Mon Nov 05, 2018 5:37 pm

crazyflies are not stable

Post by azamali » Mon Nov 05, 2018 6:08 pm

Hi!
I am using flow deck for simple hovering from ubuntu 18.04 terminal. Crazyflie is not hovering at a particular place as I expected. I I have tried from VBox earlier. Result is more or less the same. Crazyflie is going to left side (slightly) and waving vertically. I have 3 crazyflies, and all of them are behaving same way.
In my code I tried thrust (32767) for a few seconds. Please help me with possible reason for this and the right way I need to try.
For your information: I have tried multicolored surface, white surface, etc. Result is better when I used multicolored surface, but still shaking.
Please share a link where I can get a python code for hovering a crazyflie. Thank you!
Please also help me with how do I make sure my flow deck is working properly.

arnaud
Bitcraze
Posts: 1790
Joined: Tue Feb 06, 2007 12:36 pm

Re: crazyflies are not stable

Post by arnaud » Tue Nov 06, 2018 7:42 am

Hi, can you maybe share a short video of the behaviour you are observing?

There can be small shaking in Z but X-Y should be very stable if the tracking surface is good. Depending of the version of the flow deck you have you should limit Z: Flow deck should be used bellow 1m and Flow deck V2 can be used much higher depending of the floor surface, 2 meters works fine on wood floor.

The two example you can try are the flow sync sequence that fly a figure 8: https://github.com/bitcraze/crazyflie-l ... nceSync.py and the motionCommander example that flies a small sequence: https://github.com/bitcraze/crazyflie-l ... nceSync.py.

azamali
Beginner
Posts: 3
Joined: Mon Nov 05, 2018 5:37 pm

Re: crazyflies are not stable

Post by azamali » Tue Nov 06, 2018 11:39 pm

Thank you!
Crazyflie is basically shaking in Z axis but I was expecting something smooth hovering. Please see the video from my drive: https://drive.google.com/file/d/1l54nuL ... sp=sharing. I have used code from bottom of this link: viewtopic.php?t=2167. The guy said crazyflie stays about 15 cm above.

So, do you think I need to change ground surface? or any other issues like interference or propellers?

Please be informed that I am not using LPS right now. So, I can not run flow sync sequence or small sequence. All I wanted to make it hover. And please let me know whether LPS is mandatory with flow deck or not.

arnaud
Bitcraze
Posts: 1790
Joined: Tue Feb 06, 2007 12:36 pm

Re: crazyflies are not stable

Post by arnaud » Thu Nov 08, 2018 8:14 am

This is too much shacking indeed, at most you should get some millimeters. It seems like you are not using the flow functionality at all. Have you tried any of the example I sent the link to?

For reference, the following script addapted from https://github.com/bitcraze/crazyflie-l ... er_demo.py:

Code: Select all

import time

import cflib.crtp
from cflib.crazyflie.syncCrazyflie import SyncCrazyflie
from cflib.positioning.motion_commander import MotionCommander

URI = 'radio://0/96/2M'

if __name__ == '__main__':
    cflib.crtp.init_drivers(enable_debug_driver=False)

    with SyncCrazyflie(URI) as scf:
        with MotionCommander(scf) as mc:
            time.sleep(1)

            mc.forward(0.5)
            mc.back(0.5)

            time.sleep(1)
Gives me this result: https://photos.app.goo.gl/ofsWqYJKuNhmizzo7

azamali
Beginner
Posts: 3
Joined: Mon Nov 05, 2018 5:37 pm

Re: crazyflies are not stable

Post by azamali » Thu Nov 08, 2018 5:29 pm

Thank you again! Problem is solved now. I needed to update crazyflie-firmware. :) I totally unaware that crazyflie firmware is for CF1.

arnaud
Bitcraze
Posts: 1790
Joined: Tue Feb 06, 2007 12:36 pm

Re: crazyflies are not stable

Post by arnaud » Fri Nov 09, 2018 6:58 am

Crazyflie firmware is for CF2 (it does not support CF1 anymore) and yes, one of the first thing to do when you assemble your Crazylfie is to update the firmware :). Great that the problem is solved!

Post Reply