Skip to main content

A simple e6b flight calculator

Project description

E6B

Simple python project to perform E6B flight calculations

Installation

$ pip install e6b

Usage

Calculate required flight bearing and final ground speed

from e6b import e6b

windSpeed = 10
windBearing = 90
trueAirSpeed = 15
desiredBearing = 180

correctedBearing,correction = e6b.getCorrectedBearing(windSpeed,windBearing,trueAirSpeed,desiredBearing)
groundSpeed = e6b.getGroundSpeed(windSpeed,windBearing,trueAirSpeed,desiredBearing,correction)

print(correctedBearing)
>>  138.18968510422138
print(groundSpeed)
>>  11.180339887498947

Using radians instead of degrees

from e6b import e6b

windSpeed = 10
windBearing = 1.5708
trueAirSpeed = 15
desiredBearing = 3.14159

correctedBearing,correction = e6b.getCorrectedBearing(windSpeed,windBearing,trueAirSpeed,desiredBearing,True)
groundSpeed = e6b.getGroundSpeed(windSpeed,windBearing,trueAirSpeed,desiredBearing,correction,True)

print(correctedBearing)
>>  2.4118623437909346
print(groundSpeed)
>>  11.180276619728994

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

e6b-0.0.1.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

e6b-0.0.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file e6b-0.0.1.tar.gz.

File metadata

  • Download URL: e6b-0.0.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for e6b-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ac8551daedd5f290e68bbc8c791b985126ba60bcadd9c90f76dfa644c8e2f4d7
MD5 8924c1632aeccbac0cb8f857e0d49da2
BLAKE2b-256 4cbe3422fd55f147637a18579d5ce60850ca93b2745342b4687fba5c76c2db69

See more details on using hashes here.

File details

Details for the file e6b-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: e6b-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9

File hashes

Hashes for e6b-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c40a9d7d3df2db734a64e53d8c9b2c480ad2b1e59a2d4f904d1f4cb43ed29be
MD5 81c4859b80ddc05ebb22c0a2eb51ce64
BLAKE2b-256 a6e90986eb35bff66d4100be09ec49fb0cb3eb7bd07591b53e439131801e8527

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page