air traffic control program for Tandy model 102
|
05-25-2015, 12:43 AM
(This post was last modified: 05-26-2015 01:15 PM by Don Shepherd.)
Post: #1
|
|||
|
|||
air traffic control program for Tandy model 102
I wrote an air traffic control program for the Macintosh way back around 1987-1988. It was fun to write, and I learned Microsoft BASIC for the Mac with that program.
A few months ago a forum member gave me a Tandy 102 laptop computer, which also runs BASIC. This computer is not a graphics-based computer like the Mac, but I thought it would be fun to do a rather simple ATC program for it. The horizontal line across the middle of the screen represents an airway that planes fly on. There will be eastbound planes, entering from the left side of the screen, and westbound planes entering from the right side of the screen. The exact location of the plane is represented by a little plane symbol and associated with the plane is the aircraft ID (letter A-Z, for 26 planes) and the current altitude, in thousands of feet (the data for west bound planes is above the line, and the data for eastbound planes is below the line). Planes enter at a random altitude from 1000 to 8000 feet and should leave the screen at 9000 feet so that they won't run into another plane at 1000-8000 feet just entering the screen. The screen is updated about once every seven seconds, which is about what the real-life ATC enroute system does in the US (or perhaps I should say what it did back in the 1990's when I worked on it). Unlike real ATC, you can only do one thing to a plane: change his altitude. You can't vector him, hold him, slow him down or speed him up, tell him to get lost, etc. So the challenge is to use altitude to separate planes flying across the screen. If two planes are at the exact same location at the same altitude, they crash and the game is over. I should point out that a crash can only occur between a westbound plane and an eastbound plane; eastbound or westbound planes can't crash into one another because they all go the same speed. You give an altitude command by keying in: C8. This tells plane C to climb or descend to 8000 feet. When a new plane comes onto the screen, you hear a beep. You will amost always want to give him an altitude command, and for a NEW plane you just have to enter the altitude, like 8, a nice little shortcut. Your goal is to handle all 26 planes. In real life, planes don't fly airways at just any old altitude. Eastbound flights fly at odd thousands of feet, and westbound flights fly at even thousands of feet. I could have implemented that with this simulator, but it wouldn't have made it very challenging. So basically you have planes headed directly at one another and it's your job to keep their altitudes different so they don't crash. There is no mouse on a Tandy 102. Your control is from the keyboard. Pressing ESC stops the simulation. The pause key on the Tandy will pause the simulation; press it again to resume. The program will change the time-of-day clock on the computer, so be aware. There are no rules regarding how one must run the simulation or define the separation procedures; that's up to you. Anyhow, it was fun to write and I post it here in case anyone is interested. Code:
|
|||
05-26-2015, 02:34 AM
Post: #2
|
|||
|
|||
RE: air traffic control program for Tandy model 102
Cool!
(If you haven't found it already, Club 100 is an excellent resource for the Kyocera portables like the M102. ) Bob |
|||
05-26-2015, 11:52 AM
Post: #3
|
|||
|
|||
RE: air traffic control program for Tandy model 102
(05-26-2015 02:34 AM)BobVA Wrote: Cool!Thanks Bob. Yeah, I know about that site, it has a treasure trove if information about these early laptops from Radio Shack. The fellow who started it apparently died. There is another fellow who has taken over for him, but he has not replied to my requests to buy some things from the site. He did eventually contact me months after I ordered something to see if I was still interested, and I said yes, but then he disappeared again. Oh well. But it is a good site for information. Don |
|||
05-26-2015, 06:21 PM
Post: #4
|
|||
|
|||
RE: air traffic control program for Tandy model 102
(05-26-2015 11:52 AM)Don Shepherd Wrote:(05-26-2015 02:34 AM)BobVA Wrote: Cool!Thanks Bob. I wonder if some place like Digikey or Jameco sells the appropriate RAM chip for upgrading a 102. I remember ordering a bunch of bare 128 KB chips from Jameco in the late '90s to upgrade an Apple IIgs memory expansion board. I'd also like to build a cassette cable, but all the Radio Shacks are dying out, and the ones that aren't don't carry the appropriate 5-pin DIN connectors anymore. Seems appropriate to buy TRS-80 parts at a Radio Shack, you know? |
|||
05-26-2015, 06:35 PM
Post: #5
|
|||
|
|||
RE: air traffic control program for Tandy model 102
(05-26-2015 06:21 PM)Dave Britten Wrote: I'd also like to build a cassette cable, but all the Radio Shacks are dying out, and the ones that aren't don't carry the appropriate 5-pin DIN connectors anymore. Seems appropriate to buy TRS-80 parts at a Radio Shack, you know? Does this mean do cannot get hold of a simple 5-pin standard (or mini) DIN-connector? Like the type that was used for PC keyboards years ago? Dieter |
|||
05-26-2015, 07:08 PM
Post: #6
|
|||
|
|||
RE: air traffic control program for Tandy model 102
(05-26-2015 06:35 PM)Dieter Wrote:(05-26-2015 06:21 PM)Dave Britten Wrote: I'd also like to build a cassette cable, but all the Radio Shacks are dying out, and the ones that aren't don't carry the appropriate 5-pin DIN connectors anymore. Seems appropriate to buy TRS-80 parts at a Radio Shack, you know? I'm sure I could get one by mail order, but I don't see them in the retail locations anymore. |
|||
05-26-2015, 09:37 PM
Post: #7
|
|||
|
|||
RE: air traffic control program for Tandy model 102
(05-26-2015 06:21 PM)Dave Britten Wrote: I wonder if some place like Digikey or Jameco sells the appropriate RAM chip for upgrading a 102. I remember ordering a bunch of bare 128 KB chips from Jameco in the late '90s to upgrade an Apple IIgs memory expansion board. Unfortunately no, those machines came out well before the 32k CMOS static RAM, so they sort of invented their own pinout for the little 8k modules. Same with the ROM on the earlier M100's which also had a non-standard pinout. If you wanted a project, you could probably replace the entire 32k RAM with a single chip, but it would require quite a lot of white-wires, trace cutting and some external decoder logic. |
|||
05-26-2015, 09:43 PM
(This post was last modified: 05-26-2015 09:58 PM by BobVA.)
Post: #8
|
|||
|
|||
RE: air traffic control program for Tandy model 102
(05-26-2015 11:52 AM)Don Shepherd Wrote: He did eventually contact me months after I ordered something to see if I was still interested, and I said yes, but then he disappeared again. Yeah, the stock of parts got rescued by some volunteers when the original operator passed away. The great guy who took on the lion's share of the task (and who also invented the external SD card storage for the 100 series) is unfortunately super busy and has a lot of things going on. You might try again, or sign up for the list serve and post a query to that. If the new admin can't get to it, sometimes someone else will jump in. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)