Skip to content

Commit

Permalink
Fix crash in ship_view
Browse files Browse the repository at this point in the history
  • Loading branch information
royfalk committed Nov 19, 2024
1 parent 75a16d6 commit 4a94f66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/base_computer/ship_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4a94f66

Please sign in to comment.