From e349bb8a7f2f6328a3fc3b81f672c04f7b5feca8 Mon Sep 17 00:00:00 2001 From: meggert Date: Fri, 24 Feb 2023 13:27:27 +0100 Subject: [PATCH] get rid of the dirty determinant for now --- mission/controller/acs/util/MathOperations.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mission/controller/acs/util/MathOperations.h b/mission/controller/acs/util/MathOperations.h index d8c8d0d6..f8537740 100644 --- a/mission/controller/acs/util/MathOperations.h +++ b/mission/controller/acs/util/MathOperations.h @@ -10,8 +10,6 @@ #include -#include "fsfw/timemanager/Stopwatch.h" - using namespace Math; template @@ -333,10 +331,6 @@ class MathOperations { static int inverseMatrix(const T1 *inputMatrix, T1 *inverse, uint8_t size) { // Stopwatch stopwatch; - // if (MathOperations::matrixDeterminant(inputMatrix, size) == 0) { - // return 1; // Matrix is singular and not invertible - // } - // stopwatch.stop(true); T1 matrix[size][size], identity[size][size]; // reformat array to matrix for (uint8_t row = 0; row < size; row++) { @@ -351,7 +345,6 @@ class MathOperations { } // gauss-jordan algo // sort matrix such as no diag entry shall be 0 - // should not be needed as such a matrix has a det=0 for (uint8_t row = 0; row < size; row++) { if (matrix[row][row] == 0.0) { bool swaped = false;