Page 2 of 3

Re: libcflie

Posted: Fri Jun 21, 2013 9:36 am
by TheFrog4u
Regarding reading of values from the pressure sensor, there has already been done some work from others here in the forum. For example have a look here

Re: libcflie

Posted: Sat Jun 22, 2013 12:41 am
by n0n4m3
Thank you TheFrog4u.

I did a little debug but it appears that:
ms5611GetPressure(MS5611_OSR_256) is only different from 0 in very few circumstances (see attached image). These values are coming directly from the firmware stabilizer.c loop.
It might be related to the sensor operating at a different frequency then the loop where it's running but I'm not sure as I don't have much experience on this.
Maybe someone can provide some input.


EDIT: After I re-read the other thread I noticed that the sensor operates at another frequency. I incorporated the code from that thread in the customfirmware from Jan and now the values reported by DEBUG_PRINT in the firmware seem fine but the problem is that when I access the values in the client side they don't get updated. Not sure why this is happening.

EDIT2: Nevermind, I got it working :)

Re: libcflie

Posted: Mon Sep 23, 2013 2:20 pm
by marco.tognon
hallo!

very good work!!! I'm trying to run the exe-gui but it says:
  • Sudo: exe-gui command not found
Why on the my pc doesnt it work intead on another pc it works??? I follow the same instruction!

Re: libcflie

Posted: Tue Aug 04, 2015 12:49 pm
by fairlight1337
marco.tognon wrote:hallo!

very good work!!! I'm trying to run the exe-gui but it says:
  • Sudo: exe-gui command not found
Why on the my pc doesnt it work intead on another pc it works??? I follow the same instruction!
According to the CMakeLists.txt (https://github.com/fairlight1337/libcfl ... eLists.txt), it compiles to

Code: Select all

ex-gui
rather than

Code: Select all

exe-gui
Is this a typo in your post or in the command you actually tried?

Cheers,
Jan

Re: libcflie

Posted: Wed Aug 12, 2015 7:33 am
by Slaxx
Thank you for the development of the library.
I could build everything and also run it, but the crazyflie is not doing a move.
I used the ex-simple file and just commented out the pitch/roll/yaw commands and set a fixed thrust to 20000. Is there any problem with the example?

I'm using the VM0.6 from Bitcraze. The python library worked fine for me.

Re: libcflie

Posted: Wed Aug 12, 2015 7:50 am
by fairlight1337
Some other people had that issue as well (see https://github.com/fairlight1337/libcflie/issues/10). This might be related to a new motor unlock feature in the newer firmware that first requires a start signal for the motors to accept thrust commands.

As far as rshum19 on GitHub pointed out, removing this feature from the firmware "solves" the problem. Right now, there is no easy solution for this, I'm afraid.

Re: libcflie

Posted: Wed Aug 12, 2015 8:08 am
by Slaxx
Thank you for the fast answer.
I first thought this might be the problem since I hade the same issue with the python examples. But then I tried also sending a 0 value and it didn't work. I will try the solution rshum19 suggested.

Re: libcflie

Posted: Wed Aug 12, 2015 8:29 am
by Slaxx
OK I tried it but it didn't change. I realized though that if I run ex-gui I can't even see any movements there when moving my CF. I installed everything that was written in the readme file though.

Re: libcflie

Posted: Wed Aug 12, 2015 8:34 am
by fairlight1337
Can you control the Crazyflie through the Python scripts? Depending on your case, the radio address for your device might be different.

Re: libcflie

Posted: Wed Aug 12, 2015 8:48 am
by Slaxx
Haha you got me there. Didn't think about that, because the Python scripts automatically detect the address and select it. Thank you very much.