Synchronizing Optitrack positioning data with Crazyflie logging #206
-
When exclusively using crazyflie logging (with the crazyflie loco positioning setup), I can log the timestamp and parameter groups (across separate LogConfigs) to a CSV, allowing me to sync up values across parameter groups with the timestamps. I'm considering switching to optitrack for position/attitude, but would still be using crazyflie's linear/angular velocity logging. My concern is how to synchronize the data from these two streams (Optitrack and Crazyflie logging). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
HI!
This is probably the easiest solution and would give you pretty good time stamping. The solution depends on what kind of precision you need. The logging framework is a bit of "best effort", it will transmit data (and sample variables) when there is space in an outgoing packet. In most cases this is pretty instantaneous, but it is not guaranteed. The time stamp you get on the python side is when the packet arrives (I think). This means that the time stamp probably is pretty accurate, but the sample rate is possibly not very precise or stable. If you need better time stamping, you could use the SD-card deck and log to an SD-card on the Crazyflie. That will provide better time stamping, but it is less convenient as you have to move the SD-card back and forth. |
Beta Was this translation helpful? Give feedback.
HI!
This is probably the easiest solution and would give you pretty good time stamping.
The solution depends on what kind of precision you need. The logging framework is a bit of "best effort", it will transmit data (and sample variables) when there is space in an outgoing packet. In most cases this is pretty instantaneous, but it is not guaranteed. The time stamp you get on the python side is when the packet arrives (I think). This means that the time stamp probably is pretty accurate, but the sample rate is possibly not very p…