REM                    F22/WCS PROGRAMMING TEMPLATE
REM
REM B50 FILENAME:F22WCS.F22       DESCRIPTION: Joint Strike Fighter___________
REM ________________________________________________________________________
REM
REM WRITTEN BY: Sander Johansen for Innerloop_____  DATE: 10.09.97____
REM
REM
REM ************************PRELIMINARY SETTINGS**************************
REM
REM
USE WCS
REM
REM
RATE 100
REM ***********************MACRO DEFINITION FILE***************************
REM ****************************F-22 SETTINGS******************************
REM
REM SETUP ANALOG JOYSTICK COMMANDS.  THE FOLLOWING INSTRUCTIONS WILL
REM PRODUCE ANALOG JOYSTICK BUTTON OUTPUT FOR THE F-22 TRIGGER (TG1), AND
REM F-22 BUTTONS S2, S3, AND S4.  DIGITAL COMMANDS CAN ALSO BE PROGRAMMED
REM TO THESE BUTTONS, IF DESIRED.  IF ANALOG OUTPUT IS NOT DESIRED, SIMPLY
REM PLACE A 'REM' STATEMENT IN FRONT OF THE APPROPRIATE PORTBx LINE BELOW.
REM FOR MOST SITUATIONS, LEAVE 'PORTB1 IS TG1' AS IS AND REM OUT THE
REM REMAINING PORTBx LINES IN ORDER TO ASSIGN DIGITAL OUTPUT TO THEM.
REM
REM PORTB1 IS TG1
REM PORTB2 IS S2
REM PORTB3 IS S3
REM PORTB4 IS S4
REM
REM FIRST TRIGGER CLICK (DIGITAL OUTPUT).  PLACE A 'REM' IN FRONT OF
REM THE BTN TG1 LINE IF ONLY ANALOG OUTPUT IS NEEDED.
REM
MDEF F22WCS
REM
REM
REM ****************************F22 SETTINGS******************************
REM
REM FIRST TRIGGER CLICK
REM
    BTN TG1 FireCannon
REM
REM SECOND TRIGGER CLICK
REM
    BTN TG2 FireCannon
REM
REM BUTTONS S1 THRU S4 (S1=INDEX FINGER, S2=THUMB, S3=PINKY, AND
REM S4=PADDLE SWITCH ON F22). S3 IS BUTTON-MODIFIER
REM
    BTN S1 /O Virtual
           /I FrontHMD
    BTN S2 /O FireSelectWeapon
           /I RadarModeCycle
    BTN S3
    BTN S4 MouseEnable
REM
REM
REM H1=LARGE HAT AT TOP OF F22
REM S3 OUT = VIRTUAL COCKPIT VIEWS
REM S3 IN  = VIEWCONTROLS
REM
BTN H1U /O /P  RAW (#14 #E0 #75)
           /R  RAW (#F0 #E0 #75 #F0 #14)
        /I Target
BTN H1D /O /P  RAW (#14 #E0 #72)
           /R  RAW (#F0 #E0 #72 #F0 #14)
        /I Wingman
BTN H1L /O /P  RAW (#14 #E0 #6B)
           /R  RAW (#F0 #E0 #6B #F0 #14)
        /I Outgoing
BTN H1R /O /P  RAW (#14 #E0 #74)
           /R  RAW (#F0 #E0 #74 #F0 #14)
        /I Incoming

REM
REM H2=SMALL HAT BELOW BUTTON S2 RADAR AND WEAPONS MANAGEMENT
    BTN H2U /O CycleAAWeapons
            /I SelectNextTarget
    BTN H2D /O CycleAGWeapons
            /I SelectPrevTarget
    BTN H2L /O RadarOnOff
            /I DecreaseRange
    BTN H2R /O DeliveryModeA2G
            /I IncreaseRange
    BTN H2M
REM
REM H3=SECOND LARGER HAT BELOW H1 MFD CONTROLS
    BTN H3U /O StrategicMFD
            /I MFDOnOff  REM Must be in MFD Fullscreen
    BTN H3D StatusMFD
    BTN H3L /O AttackMFD
            /I ControlMFD
    BTN H3R /O OffensiveMFD
            /I InfoMFD
    BTN H3M
REM
REM H4=HAT ON LEFT SIDE OF F22 NAVIGATION AND VIEWS
    BTN H4U /i NextWaypoint
            /o /P RAW (#E0 #7D)
               /R RAW (#F0 #E0 #7D)
    BTN H4D /i PrevWaypoint
            /o /P RAW (#E0 #7A)
               /R RAW(#F0 #E0 #7A)
    BTN H4L HMDSls
    BTN H4R HMDNav
    BTN H4M
REM
REM ****************************WCS SETTINGS*******************************
REM
REM BUTTONS T1 THRU T8 ARE USED BY THE WCS
REM MISC DEFENSIVE, FLIGHT/AUTOPILOT AND SECONDARY CONTROLS
    BTN T1 ECMOnOff
    BTN T2 /O Chaff
           /I ObjectOverlay
    BTN T3 /O Flares
           /I TerrainOverlay
    BTN T4 /O AutoThrottle
           /I Matchtarget
    BTN T5 /O LevelOff
           /I AutoPilot
    BTN T6 /O BrakeOnOff
           /I Hatch
    BTN T7 /N Gear
    BTN T8 /N FlapsUpDown
REM
REM ***********************************************************************
