bjoernffm / e6b
E6-B 飞行计算机仿真
1.4
2018-08-12 21:02 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^4.0 || ^5.0
This package is not auto-updated.
Last update: 2024-09-23 18:02:44 UTC
README
这个类提供了一个普通E6-B飞行计算机的第一版和非常基本的版本,也被昵称为“智轮”。
E6-B计算器是一种圆形计算尺,用于航空领域,是21世纪广泛使用的少数模拟计算机之一。
用法
想象一下,我们想要飞行一个220度的航向,真实空速为110节。风向来自270度,风速为25节。那么,校正角度、航向和地面速度的结果是什么?
<?php use bjoernffm\e6b\Calculator as e6bCalc; require_once __DIR__ . '/vendor/autoload.php'; $result = e6bCalc::getWindCorrectionAngle(220, 110, 270, 25); var_dump($result); /* array(3) { 'windCorrectionAngle' => int(10) 'heading' => int(230) 'groundSpeed' => int(92) } */
享受使用E6-B仿真器的乐趣!