question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

synchronized logging problem

See original GitHub issue

Hi, I want to log data from one crazyflie. I used "rosbag record -a" to get /tf and other data: I used these settings : genericLogTopics: ["log1","log2"] genericLogTopicFrequencies: [10,10] genericLogTopic_log1_Variables: [ "gyro.x","gyro.y", "gyro.z"] genericLogTopic_log2_Variables: [ "acc.x","acc.y", "acc.z"]

and the result of rosbag info is like this:

topics:
     /cf1/log1       230 msgs    : crazyflie_driver/GenericLogData
             /cf1/log2      2156 msgs    : crazyflie_driver/GenericLogData
             /diagnostics     23 msgs    : diagnostic_msgs/DiagnosticArray
             /joy            164 msgs    : sensor_msgs/Joy                
             /rosout          15 msgs    : rosgraph_msgs/Log               (5 connections)
             /rosout_agg       2 msgs    : rosgraph_msgs/Log              
             /tf            1807 msgs    : tf2_msgs/TFMessage'

the collected data are not synchronized. I need to log with somehow high data rate. I need to know the position of the crazyflie at the moment of collecting data. Is there any way to do so? will using usdcard help to have all the mentioned data? I want to log some data related to the motor too. like PWM or thrust for each motor and …? Do you have any suggestion to log such data?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
whoenigcommented, Dec 20, 2019

The values within one log topic are synchronized, but values across different topics are not. You can create your own custom log configuration (as you did for log1 and log2) above and combine the gyro and acc readings. Unfortunately, you can only log ~26 Bytes per log configuration, so about 6 float variables. Finally, logging over the radio is limited (in the firmware) to 100 Hz.

The best choice is likely the uSD card. I have successfully used it to log >20 variables at high rates (you can go up to 1 khz if you only log a few variables). All variables on the uSD card are synchronized (default timestamp in ms, but its also possible to get a us timer). You can download the latest log file from the uSD card over the radio using the crazyflie_tools package.

0reactions
whoenigcommented, Jan 27, 2021

Bitcraze now sells longer pin headers for decks, which should allow you to attach 3 decks. Perhaps that suffices? Otherwise you can use the logging over the Crazyradio (just a few variables can be logged simultaneously), or physically connect a J-Link on the debug port (to collect data without flying).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Outlook Synchronization Log Issues? | Stellar
Solutions to Fix Outlook Synchronization Log Issues · Turn Off Cached Exchange Mode · Setup a New Outlook Profile · Rebuild Damaged Outlook...
Read more >
How to fix this Synchronization Log: issue???
1. Have you tried re-creating an offline Outlook Data File (. · 2. Create a new profile for the Outlook client and add...
Read more >
Synchronizing Log Messages in Outlook – BCIT
The synchronization issues folders contain logs and items that Microsoft Outlook has been unable to synchronize with your Microsoft Exchange Server.
Read more >
Resolve Synchronization Log Issue in MS Outlook
Methods to fix Outlook Synchronization Log issue · Ensure an uninterrupted internet connection. · Verify all the server and Outlook settings. · Check...
Read more >
What Is The Outlook Synchronization Log? - Intermedia
Sync Issues folder is a container for all synchronization logs. The data in the Sync Issues folder is local and not copied to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found