How to control airspeed in PX4 fixed-wing VTOL using ROS 2?

I am just getting started with PX4 and I am trying to control a standard fixed-wing VTOL drone in Gazebo using roll angle and airspeed as inputs. I found that I can use the VehicleAttitudeSetpoint (uORB message) for this, but it takes thrust as input rather than airspeed.

I have searched around but could not find a way to directly control airspeed. I could implement a PID controller to convert airspeed into thrust, but something tells me I might be missing a more direct or standard way to set the airspeed, since this seems like a basic control feature.

Has anyone dealt with this before or could point me in the right direction?

Specs: PX4 1.15.4, Gazebo Garden, ROS 2 Humble, px4_msgs and px4_ros_com, Python, Ubuntu 20.04.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.