flock2 icon indicating copy to clipboard operation
flock2 copied to clipboard

FlightData give no data

Open kadirou31 opened this issue 4 years ago • 0 comments

Hi, many thanks for your work, I'm trying to get the flight data but it is empty all the time

when i run: ros2 list topic : .......... /drone1/camera_odom /drone1/camera_pose /drone1/cmd_vel /drone1/flight_data /drone1/image_marked /drone1/image_raw .......... i can send commands to the drone takeoff , land , rc ..... it's working very well my code : subscription = node.create_subscription(FlightData, '/drone1/flight_data', flight_data_callback, 10) def flight_data_callback(msg): node.get_logger().info(' yaw : {} , pitch : {} , roll : {} , altitude {}, tof {} '.format(msg.yaw,msg.pitch,msg.roll,msg.baro,msg.tof)) Running results of my program : [INFO] [drone_starting]: yaw : 0 , pitch : 0 , roll : 0 , altitude 0.0, tof 0

thanks, guys

kadirou31 avatar May 30 '20 17:05 kadirou31