## The autopilot initialization routine APINIT

The Matlab program APINIT can be used to initialize the autopilot systems APILOT1, APILOT2, APILOT3; this routine needs to be run before starting a new simulation.

The program can be started by typing `apinit` at the Matlab command-line, or by double-clicking the APINIT button in the PAH/RAH systems. A menu will be displayed in the command window; the user is expected to walk through all menu options in the shown order and enter all required parameter values (for the simplified model APILOT1, the VOR and ILS initialization may be skipped). APINIT calls several subroutines; see the source-code of APINIT.M in the FDC directory APILOT for more details.

Note: APINIT does not initialize the autopilot mode and reference values of the control inputs. Those values should be defined with the routine APMODE.