Search found 17 matches

by Duncan
Tue Nov 05, 2019 9:50 pm
Forum: Bitcraze
Topic: struct.error: unpack requires a buffer of 1 bytes
Replies: 9
Views: 638

Re: struct.error: unpack requires a buffer of 1 bytes

Thank you so much.
by Duncan
Sun Nov 03, 2019 7:07 pm
Forum: Bitcraze
Topic: struct.error: unpack requires a buffer of 1 bytes
Replies: 9
Views: 638

Re: struct.error: unpack requires a buffer of 1 bytes

Thank you very much. If always keep the logging then it would require something like the threading, right? Since the data collection would only happen in some situations, I still hope the logging could start and stop. Could you share with me some materials and resources about the async log API? I do...
by Duncan
Wed Oct 30, 2019 1:31 am
Forum: Bitcraze
Topic: struct.error: unpack requires a buffer of 1 bytes
Replies: 9
Views: 638

Re: struct.error: unpack requires a buffer of 1 bytes

Hi Arnaud, I think I find another key to this error after I modified the sync log demo code to the way I use the log in my code. Here is the code: import logging import time import cflib.crtp from cflib.crazyflie import Crazyflie from cflib.crazyflie.log import LogConfig from cflib.crazyflie.syncCra...
by Duncan
Thu Oct 24, 2019 4:30 pm
Forum: Bitcraze
Topic: struct.error: unpack requires a buffer of 1 bytes
Replies: 9
Views: 638

Re: struct.error: unpack requires a buffer of 1 bytes

Cool. So I will try to the latest version and see whether the error happens again.

Thanks.
Duncan
by Duncan
Thu Oct 24, 2019 3:26 am
Forum: Bitcraze
Topic: struct.error: unpack requires a buffer of 1 bytes
Replies: 9
Views: 638

Re: struct.error: unpack requires a buffer of 1 bytes

Hi, arnaud Those log readings are from the extra sensor through the Crazyflie so might be you could regenerate this error by reading other log parameters. The code below is the only log reading-related part in the client code. The firmware side to register log variables is similar to the "oa" deck d...
by Duncan
Thu Oct 17, 2019 7:17 pm
Forum: Bitcraze
Topic: struct.error: unpack requires a buffer of 1 bytes
Replies: 9
Views: 638

struct.error: unpack requires a buffer of 1 bytes

Hi, I encountered some issues when I try to read the log variables. I write some codes to read the log variable and do some math. It work well at the beginning and read the desired log variables without any problem. But then, after updating a few hundred times, the code crashed and shows the followi...
by Duncan
Fri Feb 08, 2019 8:51 pm
Forum: Developer discussions
Topic: How to use EKF to estimate position
Replies: 3
Views: 1421

Re: How to use EKF to estimate position

Thank you, Arnaud. Yes, using RSSI to do the position localization is not accurate enough but I am trying to improve it with all kinds of math models. EKF is a part of them. I watched the source code "estimator_kalman" in the firmware and the resources you recommended. As you said, with those "measu...
by Duncan
Sun Feb 03, 2019 3:53 pm
Forum: Developer discussions
Topic: How to use EKF to estimate position
Replies: 3
Views: 1421

How to use EKF to estimate position

Hi, I am trying to estimate the position of the CF and some Bluetooth devices based on the Bluetooth RSSI value. I want to use the built-in EKF inside the CF firmware to realize it. Is it possible? And if it is, are there any materials(codes, similar projects, examples of using EKF, etc) I could ref...
by Duncan
Thu Sep 20, 2018 6:54 pm
Forum: Developer Discussions
Topic: [SOLVED] EEPROM: I2C connection [FAIL]
Replies: 10
Views: 1762

Re: EEPROM: I2C connection [FAIL]

It turns out that except the built-in pull up resistors, an external 10k resistor is also needed for SDA and SCL. After adding the external pull-up resistors, the program works and I can get the data from my sensor.
by Duncan
Sat Sep 15, 2018 12:15 am
Forum: Developer Discussions
Topic: [SOLVED] EEPROM: I2C connection [FAIL]
Replies: 10
Views: 1762

Re: EEPROM: I2C connection [FAIL]

It turns out that my I2C sensor didn't respond to the "write" command. But I have set it to "I2CDEV_NOMEM_ADDR" and crazyflie should directly send read command instead of sending write command at first. Whatever, I fixed the sensor to make it be able to respond to the write command. After the write ...