-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
PX4 SITL Octocopter #3593
Comments
That all looks great, I think the only thing missing is configuring PX4 itself to output 8 motor outputs. In the .ulg log file you sent me I see only 6 outputs from PX4, the 7th and 8th are all zeros. Can you ad information to your above summary about how you configured PX4 to be a HIL mode octocopter? |
I don't have access to any PX4 hardware so I was running in SITL none_iris mode. Is it possible to change the airframe in the SITL mode? Changing it within QGroundControl does not seem to do anything. |
Yes, I think your choice of airframes are listed in this location in your PX4-Autopilot repo:
and the command line we are using to launch PX4 |
You are absolutely right! I changed the 10016_iris file to |
Hey congrats, that is great that it works. You should post a demo video. There are a lot of PX4 related fixes coming in this pull request: #3603 and that might fix the vehicle_magnetometer lost errors you are seeing. |
#3603 is now merged, so you can merge with master and see what happens. |
Also your code to setupFrameGenericOcto and initializeRotorOctoX would make a great pull request :-) |
Woops, I mispoke, I thought it was merged already, but it is not... should be soon though... |
What feature are you suggesting?
Overview:
I suggest adding an Octocopter mode for the PX4 Airsim bridge that would allow creating simulations of vehicles with an Octo X configuration.
Smaller Details:
I have tried implementing this feature myself following a similar process that the Quad and Hexacopter's go through in the existing codebase.
I added an additional model -- "Octocopter" -- within the
setupParams
function in Px4MultiRotorParams.hpp. From there, I would call a function namedsetupFrameGenericOcto
that I defined in MultiRotorParams.hpp that is similar to the functionsetupFrameGenericHex
except changing the params.rotor_count to 8, and calling a function namedinitializeRotorOctoX
for correctly aligning the rotor poses. TheinitializeRotorOctoX
function aligns the rotors with an Octo X configuration as specified by PX4. I followed the NED's left hand rule to the best of my abilities for calculating the angle rotations; I used π/8 and 3π/8 as my rotation angles.I have tested this on the latest Windows with the latest Airsim, Cygwin v0.8, and PX4 v1.10.1. The simulation will run, however when I try to lift the vehicle off the ground, it will flip forward instead. I am having trouble understanding whether this is due to a mistake in my rotor poses or if the thrust and masses values need to be adjusted because of the Octocopter configuration. Additionally, I am uncertain whether PX4 is generating all 8 actuator outputs. You can find a PX4 log file from one of my runs here.
Nature of Request:
Why would this feature be useful?
This feature would be useful for simulating additional PX4 vehicles that currently cannot be simulated. Furthermore, it would provide insight on how to implement more configurations that are more complex than an Octo X.
The text was updated successfully, but these errors were encountered: