From 4a94f660e8f4d1a08bcb2034e78a58ce3669f8f0 Mon Sep 17 00:00:00 2001 From: Roy Falk Date: Tue, 19 Nov 2024 20:01:28 +0200 Subject: [PATCH] Fix crash in ship_view --- python/base_computer/ship_view.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/base_computer/ship_view.py b/python/base_computer/ship_view.py index e6c4198e..86007104 100644 --- a/python/base_computer/ship_view.py +++ b/python/base_computer/ship_view.py @@ -102,9 +102,8 @@ def get_general(ship_stats): # Flight Characteristics def get_flight(ship_stats): mass = get_dbl(ship_stats,'Mass') - moment = get_dbl(ship_stats,'Moment_Of_Inertia') divider = 9.8 * mass - divider_maneuver = moment * 180 / math.pi + divider_maneuver = mass * 180 / math.pi yaw = get_dbl(ship_stats,'Maneuver_Yaw', divider_maneuver) pitch = get_dbl(ship_stats,'Maneuver_Pitch', divider_maneuver) roll = get_dbl(ship_stats,'Maneuver_Roll', divider_maneuver)