AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Spoof Controller Input Programaticially

Open rjk2147 opened this issue 9 years ago • 1 comments

Is there any way to send, from some python code, inputs to a flight controller that it would receive it and move exactly as it would as if it had received that input from a controller?

Has anyone worked on API controllers in AirSim?

rjk2147 avatar Nov 30 '17 20:11 rjk2147

Typically its not efficient to build controllers using Python on RPC APIs. If you had like to experiment with controllers, you should run AirSim from source code and directly modify code in AirLib. This is pretyy simple actually. AirSim uses flight controller called simple_flight which is pure C++11 code. It has interface for controller. You just implement that interface and change this line to use your controller class instead of built-in CascadeController. The built-in CascadeController is simple cascaded PID controllers for rates, angle, velocity and position.

sytelus avatar Dec 01 '17 10:12 sytelus