5 releases

0.2.2 Aug 3, 2023
0.2.1 Aug 2, 2023
0.2.0 Aug 2, 2023
0.1.1 Jul 30, 2023
0.1.0 Apr 16, 2023

#842 in Algorithms

MIT license

45KB
1K SLoC

Build License GitHub Sponsors

Aviation Calculator

The goal of this library is to provide a collection of useful calculations for aviators to use in other projects.

The functions are grouped by the general topics of navigation, meteorology and utilities, which mainly contain unit conversion functions. There are also FK9 Mk VI specific performance calculations.

All calculations are based on official sources and use official examples to verify correctness in automated tests.

Feel free to use this library in your projects and to contribute to it.

Usage

You can install this library as a crate using the rust package manager cargo by running cargo add aviation-calculator in your project.

For a complete list of available functions, see the automatically generated documentation for this crate.

Some Examples

Get ICAO Default temperature for your current location

use aviation_calculator::meteorology::*;

let pressure_altitude: f64 = pressure_altitude_by_qnh(996.0, 113.7);
let icao_default_temperature = icao_temperature(pressure_altitude).unwrap();

Calculate wind correction angle

use aviation_calculator::navigation::*;

let my_speed = 110.0;
let wind_speed = 12.0;
let acute_wind_angle = 20.0;

let wca = wind_correction_angle(my_speed, wind_speed, acute_wind_angle);

And much more...

Sources

Supported by

JetBrains JetBrains

Dependencies

~2.5MB
~52K SLoC