Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tiltrotor scaling for sitl gazebo #14751

Merged
merged 1 commit into from
Jun 15, 2020
Merged

Fix tiltrotor scaling for sitl gazebo #14751

merged 1 commit into from
Jun 15, 2020

Conversation

Jaeyoung-Lim
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim commented Apr 24, 2020

Describe problem solved by this pull request
Previously, the tilt actuator inputs were being set as a 1 to 1 to the joint poisiton.

This is a problem since the tilt angle ranges [-3.14, 3.14] compared to actuator setpoints [-1, 1]

As a workaround, the firmware was scaling inputs on the firmware side by setting the parameter VT_TILT_FW as done in https://github.com/PX4/Firmware/blob/master/ROMFS/px4fmu_common/init.d-posix/1042_tiltrotor#L39

Describe your solution
This PR sets the input scale on the model side by changing the input scale.

Additional context
Depends on PX4/PX4-SITL_gazebo-classic#468

@LorenzMeier
Copy link
Member

Could you rebase and update the SITL Gazebo repo to its current master? This should fix the build breakage.

This adds fixes to use the normalized actuator setpoints for simulating tiltrotor in sitl
@Jaeyoung-Lim
Copy link
Member Author

@LorenzMeier Done! Now sitl_gazebo is updated to current master 0823f5, including the changes required for this PR

@Jaeyoung-Lim
Copy link
Member Author

Dropped submodule update from this PR since it is already merged in #14763

@Jaeyoung-Lim
Copy link
Member Author

Jaeyoung-Lim commented Jun 14, 2020

@sfuhrer @RomanBapst Can we get this in?

@Jaeyoung-Lim Jaeyoung-Lim merged commit 58ca389 into master Jun 15, 2020
@Jaeyoung-Lim Jaeyoung-Lim deleted the pr-tilt-range branch June 15, 2020 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants