i hate it here
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Marius Eggert 2023-08-09 10:13:19 +02:00
parent 8a707a2664
commit 38a8327be0

View File

@ -11,6 +11,8 @@
#include <cmath>
#include <iostream>
#include "fsfw/serviceinterface.h"
template <typename T1, typename T2 = T1>
class MathOperations {
public:
@ -158,7 +160,8 @@ class MathOperations {
sif::debug << "c = " << c << std::endl;
double w = (c - u) / 2;
sif::debug << "w = " << w << std::endl;
double d = sign(vector[2]) * sqrt(q) * (w + sqrt(sqrt(pow(t, 2) + v) - u * w - t / 2 - 1 / 4));
double d =
sign(vector[2]) * sqrt(q) * (w + sqrt(sqrt(pow(t, 2) + v) - u * w - t / 2 - 1. / 4.));
sif::debug << "d = " << d << std::endl;
double N = a * sqrt(1 + epsilon2 * pow(d, 2) / pow(b, 2));
sif::debug << "N = " << N << std::endl;