Problem in logging z ranger data

Discussions and questions about the Crazyflie Nano Quadcopter
Post Reply
thasu
Member
Posts: 31
Joined: Wed Oct 18, 2017 7:16 am

Problem in logging z ranger data

Post by thasu »

I'm trying to read the z range values from python client by adding range.zrange to the log group. But values appear as 0 everytime. Other variables which are in the log group print corresponding values in the terminal. However there is no error showing in the CF console and set_hoverpoint command is working well for a given height. What could be the problem here?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Problem in logging z ranger data

Post by arnaud »

There has been a log-related bug recently that could cause this to happen, are you using the very latest version of the Crazyflie firmware from git?
thasu
Member
Posts: 31
Joined: Wed Oct 18, 2017 7:16 am

Re: Problem in logging z ranger data

Post by thasu »

Yes. What can I do to solve this problem?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Problem in logging z ranger data

Post by arnaud »

Well if you are using the latest firmware and client things should work as expected. How do you start the log, from the client or from your own script? Can you share the procedure or code you are using?
thasu
Member
Posts: 31
Joined: Wed Oct 18, 2017 7:16 am

Re: Problem in logging z ranger data

Post by thasu »

I'm using my own python script. For now let's say I want to use the basiclogSync file to log the zranger data.
Currently I'm using latest firmware and it has the same problem.
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Problem in logging z ranger data

Post by arnaud »

I could reproduce the problem using the client. This is a bug introduced when we added zranger2. If you remove zranger2.o from the makefile and remake the project you should get back the range again: https://github.com/bitcraze/crazyflie-f ... efile#L186.

I am creating a ticket about it, I think we need to centralize all ranging information in a separate file to make the API cleaner both from inside the Crazyflie and from the outside: https://github.com/bitcraze/crazyflie-f ... issues/374.
Post Reply