AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

rotateToYawAsync() not working for HexaCopter

Open Omar-Elmofty opened this issue 6 years ago • 1 comments

I am trying to simulate a hexacopter in Airsim. I am modifying the simple flight firmware with the new hexacopter parameters. Specifically here is what I did:

In SimpleFlightQuadXParams.hpp: set params.rotor_count = 6; call initializeRotorHexX rather than initializeRotorQuadX

In Params.hpp (under simple_flight/firmware): set uint16_t motor_count = 6;

In FlyingPawn.h: set static constexpr size_t rotor_count = 6;

After I make these changes, everything works fine, except that the vehicle doesn't yaw using any of the api functions, I tried all of these functions (also tried adding .join() at the end of them): rotateToYawAsync() rotateByYawRateAsync() moveByRollPitchYawrateZAsync()

I am not sure why the vehicle is not yawing, any help is appreciated.

Omar-Elmofty avatar Jul 08 '20 15:07 Omar-Elmofty

https://github.com/Microsoft/AirSim/wiki/hexacopter Closed due to age. Please feel free to open a new issue (referring to this one) if you still have this problem. Thanks!

jonyMarino avatar Oct 19 '21 21:10 jonyMarino