PX4 / PX4-Autopilot

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

Pr gz sim tiltrotor #24028

Open Perrrewi opened 3 days ago

Perrrewi commented 3 days ago

Solved Problem

Moving the tiltrotor from gazebo classic to gz sim as gazebo garden will be depreciated by the end of nov

Fixes #23602

Solution

Adding an airframe and fixed the bug in gz-bridge. PX4 sends an output value from 0 to 1000 of the servo and the GZbridge normalized it to be within +-1. The problem was that gazebo needs a servo input of angles in radian which meant the currently servos only works in the range +-1 rad.

Test coverage

Tested with QGC

Context

Results will come

github-actions[bot] commented 3 days ago

FLASH Analysis

px4_fmu-v5x ``` FILE SIZE VM SIZE -------------- -------------- +0.0% +8 +0.0% +8 .text -0.0% -8 [ = ] 0 [Unmapped] [ = ] 0 +0.0% +8 TOTAL ```
px4_fmu-v6x ``` FILE SIZE VM SIZE -------------- -------------- +0.0% +8 +0.0% +8 .text -0.0% -8 [ = ] 0 [Unmapped] [ = ] 0 +0.0% +8 TOTAL ```