Logging does not retrieve variable's value
Posted: Wed Oct 31, 2018 12:56 pm
Hi there,
I am trying to log a variable but am experiencing issues with what the Crazyflie returns to me.
I first start by deleting all log blocks previously saved in the system (port 5, channel 1, ID 5) then creating a log block (port 5, channel 1, ID 0, choosing block ID 9, followed by variable 57 - 39 in hex). I then start the logging (port 5, channel 1, ID 3, block ID 9 as before, and 64 hex for 100ms periods).
When I do this, I receive the log packet at the correct intervals, telling me it is log block 9, but the contents are empty. It does not contain variables of zero, it is simply 09 and then the packet ends.
Am I overlooking something? The variable I am trying to log for testing is temperature, but I would like to log battery level and position (x, y, z) in future. It doesn't seem to matter what variable I ask for, I always receive an empty packet.
Thanks so much for your help as always guys. Really appreciate it.
Cheers,
Jess
I am trying to log a variable but am experiencing issues with what the Crazyflie returns to me.
I first start by deleting all log blocks previously saved in the system (port 5, channel 1, ID 5) then creating a log block (port 5, channel 1, ID 0, choosing block ID 9, followed by variable 57 - 39 in hex). I then start the logging (port 5, channel 1, ID 3, block ID 9 as before, and 64 hex for 100ms periods).
When I do this, I receive the log packet at the correct intervals, telling me it is log block 9, but the contents are empty. It does not contain variables of zero, it is simply 09 and then the packet ends.
Am I overlooking something? The variable I am trying to log for testing is temperature, but I would like to log battery level and position (x, y, z) in future. It doesn't seem to matter what variable I ask for, I always receive an empty packet.
Thanks so much for your help as always guys. Really appreciate it.
Cheers,
Jess