fixed local includes
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
2022-09-27 11:06:11 +02:00
parent dca4335329
commit 5f17f365e3
22 changed files with 235 additions and 231 deletions

View File

@ -8,49 +8,48 @@
#ifndef MISSION_CONTROLLER_ACS_SUSCONVERTER_H_
#define MISSION_CONTROLLER_ACS_SUSCONVERTER_H_
#include "AcsParameters.h"
#include <stdint.h>
#include <AcsParameters.h>
class SunSensor {
public:
SunSensor() {}
void setSunSensorData();
void checkSunSensorData(uint8_t Sensornumber);
void AngleCalculation(uint8_t Sensornumber);
void setCalibrationCoefficients(uint8_t Sensornumber);
void Calibration(uint8_t Sensornumber);
void CalculateSunVector(uint8_t Sensornumber);
void checkSunSensorData(uint8_t susNumber);
void calcAngle(uint8_t susNumber);
void setCalibrationCoefficients(uint8_t susNumber);
void Calibration(uint8_t susNumber);
void CalculateSunVector(uint8_t susNumber);
bool getValidityNumber(uint8_t Sensornumber);
bool getValidFlag(uint8_t susNumber);
float* getSunVectorBodyFrame();
float* TransferSunVector();
private:
uint16_t susChannelValues[12][4]; //[Bit]
float AlphaBetaRaw[12][2]; //[°]
float AlphaBetaCalibrated[12][2]; //[°]
float SunVectorBodyFrame[12][3]; //[-]
float alphaBetaRaw[12][2]; //[°]
float alphaBetaCalibrated[12][2]; //[°]
float sunVectorBodyFrame[12][3]; //[-]
bool ValidityNumber[12] = true;
bool validFlag[12] = returnvalue::OK;
uint16_t ChannelValueCheckHigh =
uint16_t channelValueCheckHigh =
4096; //=2^12[Bit]high borderline for the channel values of one sun sensor for validity Check
uint8_t ChannelValueCheckLow =
uint8_t channelValueCheckLow =
0; //[Bit]low borderline for the channel values of one sun sensor for validity Check
uint16_t ChannelValueSumHigh =
uint16_t channelValueSumHigh =
100; // 4096[Bit]high borderline for check if the sun sensor is illuminated by the sun or by
// the reflection of sunlight from the moon/earth
uint8_t ChannelValueSumLow =
uint8_t channelValueSumLow =
0; //[Bit]low borderline for check if the sun sensor is illuminated
// by the sun or by the reflection of sunlight from the moon/earth
uint8_t CompleteCellWidth = 140,
HalfCellWidth = 70; //[°] Width of the calibration cells --> necessary for checking in
uint8_t completeCellWidth = 140,
halfCellWidth = 70; //[°] Width of the calibration cells --> necessary for checking in
// which cell a data point should be
float CoeffAlpha[12][9][10];
float CoeffBeta[12][9][10];
float coeffAlpha[12][9][10];
float coeffBeta[12][9][10];
AcsParameters acsParameters;
};