I am using Pixhawk 6C hardware with firmware version Pixhawk13.2, a Raspberry Pi 3B as the onboard computer, and Dronekit as the software.
I am trying to control the flight using only the laser sensor and the PX4 Flow optical flow sensor. Currently, I can use the remote controller to make the drone hover stably in the air(mode position).
However, when controlling the aircraft with Dronekit, I can switch the flight mode using vehicle.set_mode
, but after sending the set_position_target_local_ned
message to set the drone’s vx, vy, vz, I cannot control the drone to move forward, backward, left, or right.
Can I use Dronekit to control Pixhawk? Do I have to use MAVROS? Urgent help needed. Thank you for your response.