microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.04k stars 4.48k forks source link

Setting PID controller gains using API causes loss of altitude #4925

Open sandilyasg opened 4 months ago

sandilyasg commented 4 months ago

Bug report

What's the issue you encountered?

When I use any of the setAngleRateControllerGains, setAngleLevelControllerGains, setPositionControllerGains, or setVelocityControllerGains APIs, the quadrotor rapidly loses altitude. I am trying to understand why this is happening.

Settings

Deafult single quadrotor

How can the issue be reproduced?

I am using this script to control my quadrotor through checkpoints and adjust the PID gain: (https://gist.github.com/sandilyasg/1966c156f40ddcdf3b6715f55e607f5d)