PX4-Autopilot icon indicating copy to clipboard operation
PX4-Autopilot copied to clipboard

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

Open Byzeal opened this issue 1 year ago • 4 comments

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

Byzeal avatar Mar 29 '24 15:03 Byzeal

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

Jaeyoung-Lim avatar Mar 29 '24 15:03 Jaeyoung-Lim

@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?

Byzeal avatar Mar 29 '24 16:03 Byzeal

@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.

Jaeyoung-Lim avatar Mar 29 '24 16:03 Jaeyoung-Lim

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.

Byzeal avatar Mar 30 '24 13:03 Byzeal