Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculation Module
#1
When landing an aircraft, the pilot needs to calculate the landing distance over a fifty foot (50') object. This calculation is based on headwind speed, weight of the loaded aircraft, altitude and the temperature. 

Example I: If the runway is at 1000 feet altitude, the temperature is 80 degrees, headwind speed is 0 and the weight of the loaded aircraft is 4400 pounds; the landing rollout would be roughly 1425 feet.
Example II: If the runway is at 2000 feet altitude and the temperature is 80 degrees, headwind speed is 0 and the weight of the loaded aircraft is 4400 pounds; the landing rollout would be roughly 1700 feet.
Example III: If the runway is at 2000 feet altitude and the temperature is 60 degrees, headwind speed is 0 and the weight of the loaded aircraft is 4400 pounds; the landing rollout would be roughly 1650 feet.
Assignment:

Create a module and test script for landing an aircraft over a 50 foot object at different altitudes and temperatures. The solution should display an estimated landing roll.

I was hinted to put it in a table but didn't see how that would give me an equation to do the calculations.  If I can figure out how the calculation works, I'm confident I can complete.
Reply
#2
No flaps? What have you come up with so far?

create a function (def) that takes altitude, temperature, weight and headwind and
returns rollout.
Reply
#3
Seriously?  They did not supply you with the formula, just three examples? By the way, where is the requirement for your air speed? Without that, you cannot compute the effect of head or tail winds.  Are you to assume the runway is ideal? Completely dry, and level?  Are you using and type of breaking such as flare or hand brake?  Are you to assume that clearing your 50 foot object, you will glide to a touchdown point?

The actual formulas for take offs and landings are rather complex and rely on a number of conditions.  I don't think you are going to be able to create any type of reliable formula with just the three examples given.  Unless...they are only looking for something very simple like:

def facts(altitude, temp, headwind, weight)
    if altitude == 1000 and temp == 80 and headwind == 0 and weight == 4400:
        rollout = 1425
    elif
    .
    .
    .
    return rollout
Of course this only accounts for the 3 examples.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#4
i hope this was a programming or comp sci class and not an aviation or engineering class.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020