vehicles: add px4 sih quadx - #25
Conversation
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
|
@spencerfolk it's a very primitive interface, still needs more love, but can be extended over time. I would appreciate your help with a thorough review. I'm not much of a sim person. |
spencerfolk
left a comment
There was a problem hiding this comment.
This is amazing @mrpollo !!
It looks like we still need to translate the RotorPy sensor data into a format that PX4 likes. A similar method was implemented for the Arudpilot SITL interface
RotorPy has a 6 axis IMU sensor for computing noisy accelerations and body rates.
One minor thing: for consistency can you move the vehicle params dict sihsim_quadx to a separate file and import it in the basic usage script? For example: CF, CFBL, and Hummingbird.
Happy to help if needed. I'm also wondering if there is any desire to model more complex aero like rotor drag or blade flapping for the PX4 SIH quad. But for that we'd need some data.
|
@mrpollo when using the PX4 SITL SIH QUADX is the physics being simulated inside the PX4 firmware? If so then wouldn't this clash with the simulation in |
I delved a bit more into it, it is being simulated when running the SIH module. I ended up reusing rotorpy's own physics engine in PR #26. |
Basic implementation of PX4 SITL SIH QUADX, using the defaults from the 10040_sihsim_quadx airframe in PX4.