From f4ed9810030012e1faac7925e9248c9393d05425 Mon Sep 17 00:00:00 2001 From: meggert Date: Tue, 16 Jan 2024 15:49:58 +0100 Subject: [PATCH] cleanup --- mission/controller/acs/util/MathOperations.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/mission/controller/acs/util/MathOperations.h b/mission/controller/acs/util/MathOperations.h index dd4c3f57..c240b9ed 100644 --- a/mission/controller/acs/util/MathOperations.h +++ b/mission/controller/acs/util/MathOperations.h @@ -1,17 +1,10 @@ #ifndef MATH_MATHOPERATIONS_H_ #define MATH_MATHOPERATIONS_H_ -#include #include #include -#include -#include -#include #include -#include - -#include "fsfw/serviceinterface.h" template class MathOperations { @@ -46,7 +39,7 @@ class MathOperations { static void selectionSort(const T1 *matrix, T1 *result, uint8_t rowSize, uint8_t colSize) { int min_idx; T1 temp; - memcpy(result, matrix, rowSize * colSize * sizeof(*result)); + std::memcpy(result, matrix, rowSize * colSize * sizeof(*result)); // One by one move boundary of unsorted subarray for (int k = 0; k < rowSize; k++) { for (int i = 0; i < colSize - 1; i++) {