libcflie
Re: libcflie
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
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
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
-
- Member
- Posts: 38
- Joined: Mon Sep 16, 2013 10:22 am
Re: libcflie
hallo!
very good work!!! I'm trying to run the exe-gui but it says:
very good work!!! I'm trying to run the exe-gui but it says:
- Sudo: exe-gui command not found
-
- Beginner
- Posts: 6
- Joined: Tue Jun 04, 2013 5:41 am
- Location: Bremen / Hamburg, Germany
- Contact:
Re: libcflie
According to the CMakeLists.txt (https://github.com/fairlight1337/libcfl ... eLists.txt), it compiles tomarco.tognon wrote:hallo!
very good work!!! I'm trying to run the exe-gui but it says:Why on the my pc doesnt it work intead on another pc it works??? I follow the same instruction!
- Sudo: exe-gui command not found
Code: Select all
ex-gui
Code: Select all
exe-gui
Cheers,
Jan
Re: libcflie
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.
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.
-
- Beginner
- Posts: 6
- Joined: Tue Jun 04, 2013 5:41 am
- Location: Bremen / Hamburg, Germany
- Contact:
Re: libcflie
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.
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
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.
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
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.
-
- Beginner
- Posts: 6
- Joined: Tue Jun 04, 2013 5:41 am
- Location: Bremen / Hamburg, Germany
- Contact:
Re: libcflie
Can you control the Crazyflie through the Python scripts? Depending on your case, the radio address for your device might be different.
Re: libcflie
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.