Page 1 of 1

Problem in logging z ranger data

Posted: Wed Sep 05, 2018 7:46 pm
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?

Re: Problem in logging z ranger data

Posted: Mon Sep 10, 2018 9:15 am
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?

Re: Problem in logging z ranger data

Posted: Thu Sep 13, 2018 2:46 pm
by thasu
Yes. What can I do to solve this problem?

Re: Problem in logging z ranger data

Posted: Mon Oct 08, 2018 10:04 am
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?

Re: Problem in logging z ranger data

Posted: Mon Oct 08, 2018 1:01 pm
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.

Re: Problem in logging z ranger data

Posted: Tue Oct 09, 2018 6:36 am
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.