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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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