PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.15k stars 13.35k forks source link

[Bug] There is no thrust_and_torque data type in the OffboardControlMode.msg message in version 1.14.2 of PX4. #22951

Open Byzeal opened 5 months ago

Byzeal commented 5 months ago

Describe the bug

image

image

These two instructions do not correspond.

To Reproduce

Customize thrust_and_torque in OffboardControlMode.msg

Expected behavior

Whether future versions support it

Screenshot / Media

No response

Flight Log

None

Software Version

1.14.2

Flight controller

PID

Vehicle type

Multicopter

How are the different components wired up (including port information)

No response

Additional context

No response

Jaeyoung-Lim commented 5 months ago

@Byzeal If you enable actuator, this would allow you to command thrust and torque

Byzeal commented 5 months ago

@Jaeyoung-Lim Thank you very much for your reply! I want to do is to design control algorithm through Simulink and verify my algorithm through automatic code generation of PX4 firmware. What I do now is to enable actuator in the algorithm, does it mean that the official controller output of PX4 is shielded, so that the thrust and torque messages I publish can be verified?

Jaeyoung-Lim commented 5 months ago

@Byzeal I do not know how the simulink is integrated with PX4, and with actuator setpoints. You would need to either verify this yourself or get support from mathworks.

Byzeal commented 5 months ago
PixPin_2024-03-30_21-06-37

@Jaeyoung-Lim Thank you very much for your reply! As shown in the image above, the model I built was generated using the Pixhawk toolchain with.pX4 firmware and burned into flight control. If not published, offboard_control_mode.msg message, I will be PX4 attitude loop output code after the comment out, re-generated code after burning can also take off and control normally.