microsoft / AirSim

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

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

Open sandilyasg opened 9 months ago

sandilyasg commented 9 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)

sandyUni commented 1 month ago

any progress?