; Simple starter EPL file for ATP/Voice Commander/EPIC
; Copy this file into your EPIC directory 
; Change to the EPIC directory and type EPL ATP

:nothing {}

:triUloop{
        keyhit(END)                                  ; loop for trim up
        delay(15)
        ifactive(01)
         JUMP triUloop
        else
         nothing
        }

:triDloop{                                           ; loop for trim down
        keyhit(HOME)
        delay(15)
        ifactive(00)
         JUMP triDloop
        else
         nothing
        }


:apilot         { shifthit(z) }                       ;to go to manual control



:ptt            { ctrlhit(tilde) }                    ;push to talk



:gearup         { keyhit(rtbracket) }
:geardn         { keyhit(lftbracket) }
:autotaxi       { keyhit(tilde) }
:viewfwd        { shifthit(uparr) }
:vrlt           { shifthit(end) }
:readbck        { ctrlhit(enter) }                    ;say roger that
:cleardel       { ctrlhit(x) }                        ;say request clearance
:center         { ctrlhit(tab) }
:insight        { ctrlhit(t) }
:ground         { ctrlhit(tab) }
:tower          { ctrlhit(tab) }
:vflt           { shifthit(home) }
:depart         { ctrlhit(tab) }
:vrrt           { shifthit(pgdn) }
:vfrt           { shifthit(pgup) }
:vlt            { shifthit(lftarr) }
:appr           { ctrlhit(tab) }
:vrt            { shifthit(rtarr) }
:repeat         { ctrlhit(capslock) }
:panel          { keyhit(tab) }
:taxitkf        { ctrlhit(period) }
:taxirmp        { ctrlhit(comma) }
:diffrwy        { ctrlhit(fwdslash) }
:diffalt        { ctrlhit(a) }
:leavalt        { ctrlhit(q) }
:reqvectr       { ctrlhit(v) }
:missedap       { ctrlhit(m) }



DefineButton(00, On,triDloop)                   ; trim down button
DefineButton(01, On,triUloop)                   ; trim up button
DefineButton(02, On,apilot)                     ; turn off A/P
definebutton(03, on,ptt)                        ; V/C push to talk button

defineVC(00,gearup)                             ; this are for the use of 
defineVC(01,geardn)                             ; Voice Commander to talk 
defineVC(02,viewfwd)                            ; to ATC
defineVC(03,autotaxi)
defineVC(04,vrlt)
defineVC(05,readbck)
defineVC(06,cleardel)
defineVC(07,center)
defineVC(08,insight)
defineVC(10,ground)
defineVC(11,tower)
defineVC(12,vfrt)
defineVC(13,depart)
defineVC(14,vrrt)
defineVC(15,vfrt)
defineVC(16,vlt)
defineVC(17,appr)
defineVC(18,vrt)
defineVC(19,repeat)
defineVC(20,panel)
defineVC(21,taxitkf)
defineVC(22,taxirmp)
defineVC(23,diffrwy)
defineVC(24,diffalt)
defineVC(25,leavalt)
defineVC(27,reqvectr)
defineVC(28,missedap)

