Air Traffic Control Worksheet

  • This project was kinda thrown at me after the success of my last one which I required a LOT of help with. Due to the complexity of the If Then End statements required for this I decided I'll just ask for help overall.


    Basically, it is an air traffic control worksheet designed to allow the operators to maintain an easy to use format for ensuring two aircraft are not assigned the same airspace.


    The concept in itself is easy and the color is as well, it's when I have to factor in that an aircraft can be assigned its own space AND the surrounding space that makes it tricky.


    Attached are two documents. The Excel sheet with the grid as I need it to be with a second sheet with a breakdown of the order of operations I need the macros to follow. The text document is basically the same thing as the second sheet in the Excel document except with examples of how the conflicts would arise. I'll provide a PowerPoint with screenshots of how it should look with certain data entered when I get the chance.


    Not included in the order of operations is the need to revert the colors of the data table to clear and the data sheet to yellow when an entry is corrected from an error.


    Now, normally I'd go through the trouble of pouring myself into books and trying to find help to problems online, but I don't have the time nor the Internet reliability for that. So, I need it done within 5 days, if possible, and due to the rush in which I need it I'm willing to pay upto 125$ via Paypal. If Paypal isn't good I'd be happy to find an alternative (I really need it done and I havn't a clue as to where to start).


    Any help is greatly appreciated!

  • Re: Data Sheet And Data Table Coloring


    Hi Aon, the PPT file with screenshots is missing.


    Ger

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Air Traffic Control Worksheet


    I'm not sure if I want to be held responsible for airplanes crashing into each other. Driving my car and obeying traffic lights is tricky enough :)

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Air Traffic Control Worksheet


    I'm interested too if Ger/Dr don't do the job.


    Wigi

    Regards,


    Wigi


    Excel MVP 2011-2014


    For more Excel memes: visit http://www.wimgielis.com ==> English articles ==> Excel memes


    -- Topics without [CODE] tags or a meaningful topic title, will be neglected by me (and probably many others as well) --

  • Re: Air Traffic Control Worksheet


    Questions:


    1) Where do variables originally come from?


    2) If numbers are x and letters are y, what is z dimension of grid? In other words how is grid 3D?

  • Re: Air Traffic Control Worksheet


    Z - time maybe????


    I definitely think a couple of screenshots of it "in operation" would help here, but for the record Wigi, I wont have time to do this. Interested to see the result though. ::D

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Air Traffic Control Worksheet


    Yes, my apologies for the PowerPoint. Appearantly .ppt is not a valid format to upload here. So here is the file: http://www.zrift.com/asc.ppt


    Alright, I've updated the Excel document on for classification and added in the order of operations for changing colors after fixing a mistake. It's attached.


    To answer the question about the xyz, on the ASC sheet of the Excel document is a grid, x represents the y-axis of that grid, y represents the x-axis of that grid. It's stupid, I know, I didn't make the grid or the format for writing the airspace designation. Yes, z is a bit confusing but not when you notice that x and y result in a 9x9 block grid of its own. z represents which block within that 9x9 square the aircraft is centered. So, 89CC4 is x = 89 on the y-axis, y = CC on the x-axis, and z = block 4 in the resulting 9x9 grid.


    The tricky part is that some aircraft will have more than that square, but also the surrounding area. xyz+ would look like 89CC4+, the + meaning that the eight block surrounding that airspace belongs to that aircraft for those altitudes provided.


    Now, for the altitudes, they will be a minimum of 1000 with a maximum of 30000. Another factor that makes it tricky is that no aircraft may occupy the same airspace within a thousand feet of another aircraft. This must factor in the allotted airspace for an aircraft, not limited to the actual altitude. So if a tanker is allotted the altitudes 15000 to 16500 feet, the nearest aircraft maximum must be at most 14000 and the nearest aircraft maximum must be at least 17500 within that given airspace.


    Here's the main reason I don't think I can do it myself, I don't have the faintest clue on how to merge the regular blocks with the + block and STILL factor for the altitude differences within a given airspace. :S


    As for the concern of screwing up the macro and causing airplanes to crash, you needn't worry about that, our operators want this for a data reference, not for actual controlling.


    Honestly, any help is greatly appreciated, and I've convinced my SNCOs to let me take the time to get it right, so I have a little room for it to be working than a week, but I'd still like to get it done so I can get whatever tweaks they want done too. ^^'


    Again, I thank you all for your interest, and not only is the payment source open to change but so is the price. This would be a major help to the operators and all I really care about is doing my job (I'm getting paid extra anyways ^^').


    Just let me know what I can do to make it easier to understand. I've already made the operators make concessions in what they wanted for function, I'll be happy to do some more. ^^

  • Re: Air Traffic Control Worksheet


    If no one jumps on board, I'll take a look at it this evening when I get home.

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Air Traffic Control Worksheet


    Well, I think we should give Dr the first move. I have time this week to do it so I'm available if doesn't.

    Regards,


    Wigi


    Excel MVP 2011-2014


    For more Excel memes: visit http://www.wimgielis.com ==> English articles ==> Excel memes


    -- Topics without [CODE] tags or a meaningful topic title, will be neglected by me (and probably many others as well) --

  • Re: Air Traffic Control Worksheet


    Sorry DR, I had more time than expected at home last night and I got stuck into it. I'll back down if you already have some work completed on it, or still want to take on the job


    For the moment AON, take a look at the attached.


    * This will convert the airspace number into an x/y grid reference and plot that in the matrix.
    * It will plot either a single cell, or plot the surrounding area if you use +
    * It does rudimentary data validatation on the x/y/z values to ensure they are valid (the cell is blanked out and activated if its a incorrect xyz reference)
    * It will also check for the overlaps of aircraft in the same airspace and plot them in red if an overlap
    * I have also included the check for and highlight duplicate aircraft entries.


    But... I havent looked / factored in altitudes yet.


    Its work in progress to be honest and not totally polished, but let me know if I am on the right track. Alternatively DR / Wigi might just give you a full solution and you are welcome to use their solution either with liability to me.


    I'll include the altitude checks tomorrow.


    Cheers
    Ger

    Files

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Air Traffic Control Worksheet


    Thank you for the quick replies, but I'm afraid I'm having issues with your scripting. When I click the Intialize Grid button is errors: Run-time error '91': Object variable or With block variable not set. So, I tell it to debug and it takes me to

    Code
    Matrix.Interior.Color = RGB(255, 255, 255)

    in the script. :S


    I don't know if it's a version or add-on conflict, your codes not working for me, but it's a bit disheartening, though the code looks amazing. I never would've been able to do even that much myself.


    One note though, I'm sure you already figured this out from the PowerPoint but the scripts need to be automated so that it updates as they enter the data. The button thing is more than good for creation and beta but ops doesn't want to have to execute an entry to find out if it's errored or not.


    Thank you again, it's an amazing code, I just wish I didn't have these conflicts! ^^'

  • Re: Air Traffic Control Worksheet


    Hi AON,
    Sorry, I didnt test all the buttons right off the bat. I fixed that "Undocumented Feature". :) Apologies.


    The grid will update automatically as you enter airspace numbers. Try a few. It may not have worked before due to the first error you triggered, but it should be fine now. I've left a few in there for the moment.


    I'll take a look at the altitudes today.


    Ger

    Files

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Air Traffic Control Worksheet


    Hi Aon, I should be able to finish this today.

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Air Traffic Control Worksheet


    I've been working off-thread with AON on his requirements for this. The final-ish version is attached.


    Payment has been received (thanks again AON... :cheers: ).


    Cheers
    Ger

    Files

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: Air Traffic Control Worksheet


    Here is one solution (see attached).


    I used the Application.Intersect function to determine when two flight-airspaces overlap. I use a Dictionary object to gather and compare all flight data. The Key of the Dictionary object is the CallSign - which allows the use of the .Exists method to quickly determine if the CallSign is a duplicate (instead of looping thru rows or using some quirky VLookup function). The Item data in the Dictionary object contains a custom class object (clsFlight) that simply holds all data for each flight.


    All code is contained within the Worksheet_Change() subroutine of the ASC worksheet. The code runs when any cell is changed within the flight information columns (B:G).


    The custom class clsFlight contains a field called AirspaceGridRange which is set to the range of cells within the Airspace grid. This range is expanded to the surrounding nine cells when Airspace parameter has a + suffix. The Intersect function is used to determine if AirspaceGridRange values overlap.


    I added range-names to simplify processing. Two important range names are 'Xvalues' and 'Yvalues' which are used to validate each Airspace parameter. The Airspace parameter is parsed into its X, Y, and Z components, and the values are validated against the values found in the first column and row of the airspace grid. If you move or expand the Airspace grid then make sure to update the Xvalues and Yvalues range names too.


    Fun project!


    Regards,
    Dave Meek

  • Re: Air Traffic Control Worksheet


    I am certainly the new guy here (two posts and counting) - so I don't mean to disrespect anyone's work. Ger's solution certainly has several nice features; however, there is also a lot of hard-coding in the VBA code, which will complicate efforts to modify the code.


    Also, I found that the requirements logic to determine altitude conflicts can be greatly simplified if considered from a different perspective. If the following condition is True, then the altitudes of Flight1 and Flight2 DO NOT conflict. The trick is to add/subtract 500ft to the Max/Min altitudes (before comparison) so that the resulting comparison includes the requisite 1000ft safety zone.


    If (Flight1.MaxAltitude < Flight2.MinAltitude) Or _
    (Flight2.MaxAltitude < Flight1.MinAltitude) Then
    'No overlap, no worries
    Else
    'Altitudes overlap, Look out!
    End If


    Regards,
    Dave.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!