This repository contains a simple simulation of the F16 Ground Collision Avoidance System (GCAS). The GCAS autopilot is based on this paper by Heidlauf et al. and the JAX implementation of the F-16 dynamics from this package.
Thanks to JAX, the the autopilot and the dynamics are differentiable. Note that some minor changes were made to the original python implementation of the GCAS autopilot to make it compatible with JAX. Notably, the GCAS does not depend on the current time, but only the current state of the aircraft.
Check out this video of the real GCAS system saving a pilot's life.
First, clone the repository:
git clone [email protected]:hdelecki/jax-f16-gcas.git
Then, install the dependencies:
pip install -r requirements.txt
See the example for a simple example of simulating the GCAS.