Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

(Update: "Size doesn't match!" error) Crazyflie won't log battery, temperature, etc. #36

Closed
spohorec opened this issue Jul 7, 2016 · 3 comments

Comments

@spohorec
Copy link
Contributor

spohorec commented Jul 7, 2016

IMU and RSSI are working fine, but I can't seem to get battery data through the package. I tried connecting via cfclient, and it showed me the battery level, but when I runrostopic echo /crazyflie/battery, there is no data returned. I haven't changed any of the default logging parameters, which are appearing as 'true'. Any idea why this might be happening?

@spohorec spohorec changed the title Crazyflie won't log battery, temperature, etc. (Update: "Size doesn't match!" error) Crazyflie won't log battery, temperature, etc. Jul 11, 2016
@spohorec
Copy link
Contributor Author

Found the issue. baro.temp and baro.pressure don't seem to exist in the Crazyflie's parameters anymore. This was causing the "Size Doesn't Match!" error from Crazyflie.h and was causing it to not publish any of the parameters in the log2 block. I switched baro.temp and baro.pressure to other parameters since I didn't need them anyway, but this should perhaps be given a more robust solution.

@whoenig
Copy link
Owner

whoenig commented Jul 15, 2016

Reopen so that I can fix that. I think this might be related to newer firmware versions.

@whoenig whoenig reopened this Jul 15, 2016
@whoenig
Copy link
Owner

whoenig commented Jan 26, 2018

Tested with the latest firmware and it works fine. Closing.

@whoenig whoenig closed this as completed Jan 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants