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

How to simulate a custom tilt rotor with Gazebo #25

Open
jzattelman opened this issue Jul 21, 2020 · 3 comments
Open

How to simulate a custom tilt rotor with Gazebo #25

jzattelman opened this issue Jul 21, 2020 · 3 comments

Comments

@jzattelman
Copy link

jzattelman commented Jul 21, 2020

I've created a custom tilt rotor model in gazebo and can successfully link it with the gazebo SITL. The model is a quadplane (which will have a wing in the future) and each motor arm is able to tilt forwards to transition to fixed wing flight.

In the model SDF file, how do I tell Gazebo to take the PWM command from Ardupilot SITL and turn it into motor arm angular position? (eg 0 degrees is when the motor arm is vertical and 90 degrees is when the motor arm is tilted forward for fixed wing flight).

Thanks in advance!

@SwiftGust
Copy link
Owner

Hi,
Are you referring quad-tilt-rotor type aircraft?
I think zephyr ardupilot model would be good example in this case since there is propeller & elevon.
I can't find good example with such aircraft in Gazebo

Refer this part of the section, https://github.com/SwiftGust/ardupilot_gazebo/blob/master/models/zephyr_delta_wing_ardupilot_demo/delta_wing.sdf#L132-L186

Use position type for tilt joint, and set other parameters correct such as offset, min & max by trial and error.
For the rough example, if upright position is 0 degree, then control output from ArduPilot without tilt command(i.e. PWM low) should make tilt joint to hold upright too. This ArduPilot control to gazebo joint command interpretation is up to multiplier, offset, cmd_min & cmd_max plugin parameters.

@sundexin111
Copy link

is there a ArduPlanePlugin,my arduplane is not connected with gazebo

@SwiftGust
Copy link
Owner

@sundexin111 ArduPilotPlugin is generic plugin for ArduPilot-Gazebo SITL, use this plugin and check your settings if it doesn't connect.
Please open another issue to discuss issue.

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

No branches or pull requests

3 participants