File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -293,9 +293,12 @@ def __init__( # pylint: disable=too-many-statements
293293 self .I_12_without_motor = inertia [3 ]
294294 self .I_13_without_motor = inertia [4 ]
295295 self .I_23_without_motor = inertia [5 ]
296-
297- # Initial Inertia Tensor determinant singularity check
298- if abs (inertia ) == 0 :
296+ inertia_matrix = Matrix ([
297+ [self .I_11_without_motor , self .I_12_without_motor , self .I_13_without_motor ],
298+ [self .I_12_without_motor , self .I_22_without_motor , self .I_23_without_motor ],
299+ [self .I_13_without_motor , self .I_23_without_motor , self .I_33_without_motor ],
300+ ]) # Initial Inertia Tensor determinant singularity check
301+ if abs (inertia_matrix ) == 0 :
299302 raise ValueError (
300303 "The rocket inertia tensor is singular (determinant is zero). "
301304 )
You can’t perform that action at this time.
0 commit comments