Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FlightData give no data #43

Open
kadirou31 opened this issue May 30, 2020 · 0 comments
Open

FlightData give no data #43

kadirou31 opened this issue May 30, 2020 · 0 comments

Comments

@kadirou31
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant