Open serkanMzlm opened 3 hours ago
I broadcast "fmu/in/actuator_motors" for actuator control in offboard mode, but there was no change in the PWM signal at the IO or FMU outputs.
I connected the PX4 to the computer.
I made the necessary settings in the PX4 section for MicroXRCEAgent and connected it to the computer with the FTDI cable.
I published a message of type px4_msgs::msg::OffboardControlMode.
offboardControlModeMsg msg{}; msg.position = false; msg.velocity = false; msg.acceleration = false; msg.attitude = false; msg.body_rate = false; msg.direct_actuator = true; msg.timestamp = this->get_clock()->now().nanoseconds() / 1000; pub.offboard_control_mode->publish(msg);
I published a message of type px4_msgs::msg::ActuatorMotors.
px4_msgs::msg::ActuatorMotors sp_motors{}; for (int i = 0; i < 12; ++i) { sp_motors.control[i] = 1; } sp_motors.reversible_flags = 0; sp_motors.timestamp = this->get_clock()->now().nanoseconds() / 1000; sp_motors.timestamp_sample = sp_motors.timestamp; pub.motor->publish(sp_motors);
In this part, I waited for the PWM to change at the IO or FMU outputs.
No response
1.15
Multicopter
There is no problem with the wiring
My goal is to get PWM output to run the 6 motors I have installed externally, in addition to the 4 motors required to fly the drone.
Hello, did you put the drone into offboard mode? Where you able to arm?
Describe the bug
I broadcast "fmu/in/actuator_motors" for actuator control in offboard mode, but there was no change in the PWM signal at the IO or FMU outputs.
To Reproduce
I connected the PX4 to the computer.
I made the necessary settings in the PX4 section for MicroXRCEAgent and connected it to the computer with the FTDI cable.
I published a message of type px4_msgs::msg::OffboardControlMode.
I published a message of type px4_msgs::msg::ActuatorMotors.
Expected behavior
In this part, I waited for the PWM to change at the IO or FMU outputs.
Screenshot / Media
No response
Flight Log
No response
Software Version
1.15
Flight controller
No response
Vehicle type
Multicopter
How are the different components wired up (including port information)
There is no problem with the wiring
Additional context
No response