USC-ACTLab/crazyswarm

How to get IMU data from crazyflie-firmware?

Closed this issue · 1 comments

I want to get real time IMU data from the crazflie-firmware. Is there any method to expose the sensor data from the firmware to the crazyswarm interface?

You can use the generic logging block functionality.

Just fill in these lines with the log variables that you want:

genericLogTopics: ["log1"]
genericLogTopicFrequencies: [10]
genericLogTopic_log1_Variables: ["stateEstimate.x", "ctrltarget.x"]

(probably stateEstimate.roll/pitch/yaw. )

And enable logging with True

Mind that the roll pitch yaw might already be accessible with the pose logging too.

Just a note, if you don't have to use ROS1 I would recomment you to go to the ROS2 port of crazyswarm2 as that will be more actively maintained: https://imrclab.github.io/crazyswarm2/