home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1980-01-01 | 3.8 KB | 115 lines |
- 10 ' MENU.BAS NAVPROGseven Air Navigation Menu 1-Jan-82 Rev 10/01/85
- 20 ' Version F.03.02 for the IBM PC
- 30 ' (c) Copyright 1982 Alan Bose
- 40 ' 1224 Allison Lane
- 50 ' Schaumburg, IL 60194
- 60 '
- 70 ' CP/M modifications (c) 1982 by Glen Hassebrock, Jr.
- 80 ' Mods for Hewlett-Packard 150 (c) 1984 by Alan Bose
- 85 ' Mods for PC-DOS (c) 1985 by Bruce Carson
- 90 '
- 100 CLEAR:ON ERROR GOTO 1010:DEFINT I-N
- 110 PROGDISK$="A:":DATADISK$="B:"
- 120 OPEN "I",1,"NAVDISCS.DAT"
- 130 INPUT #1,PROGDISK$,DATADISK$:CLOSE
- 200 ' assign function keys
- 210 KEY OFF
- 220 KEY 1,"1" ' airinput - airport/navaid
- 225 KEY 2,"2" ' aircraft - aircraft
- 230 KEY 3,"3" ' autonav - auto route preparation
- 235 KEY 4,"4" ' navprog7 - flight plan
- 236 KEY 5,"5" ' oldroute - pre-storred route
- 237 KEY 6,"6" ' airalpha - sort and list navaid
- 238 KEY 7,""
- 239 KEY 8,""
- 240 KEY 9,""
- 241 KEY 10,""
- 250 '
- 260 OPEN"I",1,PROGDISK$+"DISKAID.DAT":LINE INPUT #1,ID$
- 270 CLOSE:IF ID$="172" THEN 320
- 280 PRINT "At tone, place NAVPROGseven PROGRAM DISK on drive "PROGDISK$:PRINT
- 290 PRINT "Press any key after mounting disk.";:X$=INPUT$(1)
- 300 RESET:GOTO 260
- 310 '
- 320 OPEN"I",1,DATADISK$+"DISKBID.DAT":LINE INPUT#1,ID$
- 330 CLOSE:IF ID$="182" THEN 380
- 340 CLS:PRINT "Place NAVPROGseven DATA DISK on drive "DATADISK$
- 350 PRINT "Press any key after mounting disk.";:X$=INPUT$(1)
- 360 PRINT:RESET:GOTO 320
- 370 '
- 380 CLS:
- 390 HD$="N A V P R O G s e v e n A I R N A V I G A T I O N M E N U"
- 400 PRINT P$;TAB(44-LEN(HD$)/2)HD$TAB(84)
- 405 PRINT Q$;TAB(21)"for the IBM PC, HP Vectra, and other compatibles.
- 410 PRINT TAB(21)"(c) Copyright 1982, 1984, 1986 Alan Bose F.03.02"
- 420 LOCATE 7,20:PRINT "1 - Input/revise Airport & Navaid Data"
- 430 LOCATE 9,20:PRINT "2 - Input/revise Aircraft Performance Data"
- 440 LOCATE 11,20:PRINT "3 - Automatic Route Preparation"
- 450 LOCATE 13,20:PRINT "4 - Air Navigation & Flight Planning"
- 460 LOCATE 15,20:PRINT "5 - Navigate Pre-planned Route"
- 470 LOCATE 17,20:PRINT "6 - Sort & list data on file"
- 490 LOCATE 22,26,1,1,30:PRINT " Enter selection <EXIT> ";
- 500 X$=INPUT$(1):PRINT X$:X=VAL(X$)
- 510 IF X$<>CHR$(13) THEN 880
- 520 '
- 530 CLS
- 580 PRINT
- 590 PRINT TAB(22);"USER SUPPORTED SOFTWARE"
- 600 PRINT
- 610 LOCATE 3,15
- 620 PRINT"from the Contributed Software Library of INTEREX,"
- 630 LOCATE 4,7
- 640 PRINT "the International Association of Hewlett-Packard Computer Users."
- 650 PRINT:PRINT
- 660 PRINT"User-supported software is based on the belief that program development"
- 670 PRINT"should be supported by the computer community, that the value of"
- 680 PRINT"software is best assessed by the user, not the developer, and that"
- 690 PRINT"copying software should be encouraged, not restricted."
- 700 PRINT
- 710 PRINT"INTEREX actively encourages the concept of user-supported software, but"
- 720 PRINT"its success depends on the trustworthy actions of both authors and"
- 730 PRINT "end-users."
- 740 PRINT
- 750 PRINT"If you find these programs a useful and valuable addition to your"
- 760 PRINT"software library, the suggested contribution is $45 (US) to Alan Bose,"
- 770 PRINT"1224 Allison Lane, Schaumburg IL 60194. See file README.DOC for more"
- 780 PRINT"information on documentation, source code, etc."
- 790 PRINT
- 800 X$=INPUT$(1)
- 830 LOCATE 22,1
- 840 PRINT "...services terminated. Squawk 1200."
- 850 PRINT"Frequency change approved. Have a good flight."
- 860 FOR J=1 TO 2000: NEXT J
- 865 GOSUB 2000:CLS ' clear function keys
- 870 SYSTEM
- 880 IF X<1 OR X>6 THEN PRINT " ":GOTO 490
- 890 '
- 900 CLS:PRINT "Standby one..."
- 910 PRINT " "
- 920 ON X GOTO 930,940,950,960,980,990
- 930 RUN PROGDISK$+"AIRINPUT"
- 940 RUN PROGDISK$+"AIRCRAFT"
- 950 RUN PROGDISK$+"AUTONAV"
- 960 OPEN"I",1,DATADISK$+"FLIGHT.SEQ":CLOSE:RUN PROGDISK$+"NAVPROG7"
- 970 RUN PROGDISK$+"AIRROUTE"
- 980 RUN PROGDISK$+"OLDROUTE"
- 990 RUN PROGDISK$+"AIRALPHA"
- 1010 'error trap
- 1020 IF ERR=53 AND ERL=960 THEN RESUME 970
- 1030 IF ERL=320 AND (ERR=53 OR ERR=64 OR ERR=71) THEN RESUME 340
- 1040 IF ERL=260 AND ERR=53 THEN RESUME 280
- 1045 IF ERR=53 AND ERL=120 THEN CLOSE:RESUME 200
- 1050 ON ERROR GOTO 0
- 2000 ' clear function keys
- 2010 KEY 1,""
- 2011 KEY 2,""
- 2013 KEY 3,""
- 2014 KEY 4,""
- 2015 KEY 5,""
- 2016 KEY 6,""
- 2017 KEY 7,""
- 2018 KEY 8,""
- 2019 KEY 9,""
- 2020 KEY 10,""
- 2040 RETURN
-