/SpeedUnitChanger-mod

Simple KSP plugin to show different texts on Navball

Primary LanguageC#

Speed Unit Changer - Simple plugin to visualize current speed in different units.

Displays speed in different units in Navball.
Current speed units displayed:
-Meters per second
-Kilometers per hour
-Miles per hour
-Knots
-Feet per second
-Mach

Now it also displays a window with the altitude depending on the unit selected for altitude:
- Meters
- Kilometers
- Miles
- Nautical miles
- feet

Changelog:
version 1.7.1: Added precission digits for speed.
version 1.7.0: Added precission digits. Improves in performance (thansks to linuxgurugamer)
version 1.6.1: Fix speed not calculating on orbital mode if Pe < 0
version 1.6.0: 1.3 Compatibility. Added toggle to not show speed on orbital mode.
version 1.5.0: Added different Altitude modes to Navball title.
version 1.4.3: 1.2 Compatibility. Also optimized code to not create several instances and less if checks.
version 1.4.2: 1.1.X Compatibility. Now including Mach number as Unit to choose.
version 1.4.1: Hotfix to enable showing the mod in the toolbar more than once in a game session
version 1.4.0: Update to use stock toolbar. Tested in 1.0.5
Version 1.3.0: Compatibility update for 0.24, Added unit selection for altitude.
Version 1.2.0: Added altitude window.
Version 1.1.0: 0.23.5 Compatibility.
Version 1.0.0: Initial release. Writes speed in navball. Writes orbital, surface or target speed.
Version 0.1.00: Initial version.

/* Copyright © 2014-2019, Eliseo Martín <lttito@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */