aviation-calculator

Crates.ioaviation-calculator
lib.rsaviation-calculator
version0.2.2
sourcesrc
created_at2023-04-16 21:59:53.274841
updated_at2023-08-03 23:00:59.883802
descriptionUseful calculations for aviators
homepage
repositoryhttps://github.com/php-perfect/aviation-calculator
max_upload_size
id840943
size45,647
Nico Löber (nico-loeber)

documentation

https://github.com/php-perfect/aviation-calculator/wiki

README

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

Commit count: 14

cargo fmt