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:
crazyswarm/ros_ws/src/crazyswarm/launch/hover_swarm.launch
Lines 11 to 13 in beb0549
(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/