clean up power code

This commit is contained in:
2023-03-26 16:13:54 +02:00
parent 9af7b6a39b
commit 7c700a9e19
58 changed files with 133 additions and 141 deletions

33
mission/power/gsLibDefs.h Normal file
View File

@ -0,0 +1,33 @@
#ifndef MISSION_POWER_GSLIBDEFS_H_
#define MISSION_POWER_GSLIBDEFS_H_
#include "fsfw/platform.h"
#ifdef PLATFORM_UNIX
// I really don't want to pull in all of those GomSpace headers just for 6 constants..
// Those are the headers which contain the defines which were just hardcoded below.
//#include "p60acu_hk.h"
//#include "p60acu_param.h"
//#include "p60dock_hk.h"
//#include "p60dock_param.h"
//#include "p60pdu_hk.h"
//#include "p60pdu_param.h"
#endif
#include <cstdint>
namespace gsConstants {
static constexpr uint32_t P60DOCK_HK_SIZE = 0xBE;
static constexpr uint32_t P60DOCK_PARAM_SIZE = 0x19C;
static constexpr uint32_t P60PDU_HK_SIZE = 0x90;
static constexpr uint32_t P60PDU_PARAM_SIZE = 0x13E;
static constexpr uint32_t P60ACU_HK_SIZE = 0x7C;
static constexpr uint32_t P60ACU_PARAM_SIZE = 0x1B;
} // namespace gsConstants
#endif /* MISSION_POWER_GSLIBDEFS_H_ */