bugfixes
This commit is contained in:
parent
f47101c388
commit
344390da14
@ -161,8 +161,10 @@ void ObjectFactory::produce(void* args) {
|
|||||||
BpxBatteryHandler* bpxHandler =
|
BpxBatteryHandler* bpxHandler =
|
||||||
new BpxBatteryHandler(objects::BPX_BATT_HANDLER, objects::I2C_COM_IF, bpxI2cCookie);
|
new BpxBatteryHandler(objects::BPX_BATT_HANDLER, objects::I2C_COM_IF, bpxI2cCookie);
|
||||||
#if OBSW_DEBUG_BPX_BATT == 1
|
#if OBSW_DEBUG_BPX_BATT == 1
|
||||||
bpxHandler->setStartUpImmediately();
|
|
||||||
bpxHandler->setToGoToNormalMode(true);
|
bpxHandler->setToGoToNormalMode(true);
|
||||||
|
bpxHandler->setStartUpImmediately();
|
||||||
|
#else
|
||||||
|
static_cast<void>(bpxHandler);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
2
fsfw
2
fsfw
@ -1 +1 @@
|
|||||||
Subproject commit 8f95b03e6a6dd321488aa5d60d28f20dddf7549a
|
Subproject commit fca48257b7a156f4563d5a5a6ca71b0ab98bb9fc
|
@ -28,14 +28,14 @@
|
|||||||
0x44120313;GYRO_3_L3G_HANDLER
|
0x44120313;GYRO_3_L3G_HANDLER
|
||||||
0x44120350;RW4
|
0x44120350;RW4
|
||||||
0x44130001;STAR_TRACKER
|
0x44130001;STAR_TRACKER
|
||||||
0x44130045;GPS0_HANDLER
|
0x44130045;GPS_CONTROLLER
|
||||||
0x44130146;GPS1_HANDLER
|
|
||||||
0x44140014;IMTQ_HANDLER
|
0x44140014;IMTQ_HANDLER
|
||||||
0x442000A1;PCDU_HANDLER
|
0x442000A1;PCDU_HANDLER
|
||||||
0x44250000;P60DOCK_HANDLER
|
0x44250000;P60DOCK_HANDLER
|
||||||
0x44250001;PDU1_HANDLER
|
0x44250001;PDU1_HANDLER
|
||||||
0x44250002;PDU2_HANDLER
|
0x44250002;PDU2_HANDLER
|
||||||
0x44250003;ACU_HANDLER
|
0x44250003;ACU_HANDLER
|
||||||
|
0x44260000;BPX_BATT_HANDLER
|
||||||
0x443200A5;RAD_SENSOR
|
0x443200A5;RAD_SENSOR
|
||||||
0x44330000;PLOC_UPDATER
|
0x44330000;PLOC_UPDATER
|
||||||
0x44330001;PLOC_MEMORY_DUMPER
|
0x44330001;PLOC_MEMORY_DUMPER
|
||||||
@ -75,11 +75,7 @@
|
|||||||
0x50000400;TMTC_POLLING_TASK
|
0x50000400;TMTC_POLLING_TASK
|
||||||
0x50000500;FILE_SYSTEM_HANDLER
|
0x50000500;FILE_SYSTEM_HANDLER
|
||||||
0x50000600;PTME
|
0x50000600;PTME
|
||||||
0x50000700;PAPB_VC0
|
0x50000700;PDEC_HANDLER
|
||||||
0x50000701;PAPB_VC1
|
|
||||||
0x50000702;PAPB_VC2
|
|
||||||
0x50000703;PAPB_VC3
|
|
||||||
0x50000704;PDEC_HANDLER
|
|
||||||
0x50000800;CCSDS_HANDLER
|
0x50000800;CCSDS_HANDLER
|
||||||
0x51000500;PUS_SERVICE_6
|
0x51000500;PUS_SERVICE_6
|
||||||
0x53000000;FSFW_OBJECTS_START
|
0x53000000;FSFW_OBJECTS_START
|
||||||
@ -93,6 +89,7 @@
|
|||||||
0x53000020;PUS_SERVICE_20_PARAMETERS
|
0x53000020;PUS_SERVICE_20_PARAMETERS
|
||||||
0x53000200;PUS_SERVICE_200_MODE_MGMT
|
0x53000200;PUS_SERVICE_200_MODE_MGMT
|
||||||
0x53000201;PUS_SERVICE_201_HEALTH
|
0x53000201;PUS_SERVICE_201_HEALTH
|
||||||
|
0x53001000;CFDP_PACKET_DISTRIBUTOR
|
||||||
0x53010000;HEALTH_TABLE
|
0x53010000;HEALTH_TABLE
|
||||||
0x53010100;MODE_STORE
|
0x53010100;MODE_STORE
|
||||||
0x53030000;EVENT_MANAGER
|
0x53030000;EVENT_MANAGER
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @brief Auto-generated object translation file.
|
* @brief Auto-generated object translation file.
|
||||||
* @details
|
* @details
|
||||||
* Contains 113 translations.
|
* Contains 110 translations.
|
||||||
* Generated on: 2022-01-17 15:36:10
|
* Generated on: 2022-02-03 12:01:36
|
||||||
*/
|
*/
|
||||||
#include "translateObjects.h"
|
#include "translateObjects.h"
|
||||||
|
|
||||||
@ -36,14 +36,14 @@ const char *MGM_3_RM3100_HANDLER_STRING = "MGM_3_RM3100_HANDLER";
|
|||||||
const char *GYRO_3_L3G_HANDLER_STRING = "GYRO_3_L3G_HANDLER";
|
const char *GYRO_3_L3G_HANDLER_STRING = "GYRO_3_L3G_HANDLER";
|
||||||
const char *RW4_STRING = "RW4";
|
const char *RW4_STRING = "RW4";
|
||||||
const char *STAR_TRACKER_STRING = "STAR_TRACKER";
|
const char *STAR_TRACKER_STRING = "STAR_TRACKER";
|
||||||
const char *GPS0_HANDLER_STRING = "GPS0_HANDLER";
|
const char *GPS_CONTROLLER_STRING = "GPS_CONTROLLER";
|
||||||
const char *GPS1_HANDLER_STRING = "GPS1_HANDLER";
|
|
||||||
const char *IMTQ_HANDLER_STRING = "IMTQ_HANDLER";
|
const char *IMTQ_HANDLER_STRING = "IMTQ_HANDLER";
|
||||||
const char *PCDU_HANDLER_STRING = "PCDU_HANDLER";
|
const char *PCDU_HANDLER_STRING = "PCDU_HANDLER";
|
||||||
const char *P60DOCK_HANDLER_STRING = "P60DOCK_HANDLER";
|
const char *P60DOCK_HANDLER_STRING = "P60DOCK_HANDLER";
|
||||||
const char *PDU1_HANDLER_STRING = "PDU1_HANDLER";
|
const char *PDU1_HANDLER_STRING = "PDU1_HANDLER";
|
||||||
const char *PDU2_HANDLER_STRING = "PDU2_HANDLER";
|
const char *PDU2_HANDLER_STRING = "PDU2_HANDLER";
|
||||||
const char *ACU_HANDLER_STRING = "ACU_HANDLER";
|
const char *ACU_HANDLER_STRING = "ACU_HANDLER";
|
||||||
|
const char *BPX_BATT_HANDLER_STRING = "BPX_BATT_HANDLER";
|
||||||
const char *RAD_SENSOR_STRING = "RAD_SENSOR";
|
const char *RAD_SENSOR_STRING = "RAD_SENSOR";
|
||||||
const char *PLOC_UPDATER_STRING = "PLOC_UPDATER";
|
const char *PLOC_UPDATER_STRING = "PLOC_UPDATER";
|
||||||
const char *PLOC_MEMORY_DUMPER_STRING = "PLOC_MEMORY_DUMPER";
|
const char *PLOC_MEMORY_DUMPER_STRING = "PLOC_MEMORY_DUMPER";
|
||||||
@ -83,10 +83,6 @@ const char *TMTC_BRIDGE_STRING = "TMTC_BRIDGE";
|
|||||||
const char *TMTC_POLLING_TASK_STRING = "TMTC_POLLING_TASK";
|
const char *TMTC_POLLING_TASK_STRING = "TMTC_POLLING_TASK";
|
||||||
const char *FILE_SYSTEM_HANDLER_STRING = "FILE_SYSTEM_HANDLER";
|
const char *FILE_SYSTEM_HANDLER_STRING = "FILE_SYSTEM_HANDLER";
|
||||||
const char *PTME_STRING = "PTME";
|
const char *PTME_STRING = "PTME";
|
||||||
const char *PAPB_VC0_STRING = "PAPB_VC0";
|
|
||||||
const char *PAPB_VC1_STRING = "PAPB_VC1";
|
|
||||||
const char *PAPB_VC2_STRING = "PAPB_VC2";
|
|
||||||
const char *PAPB_VC3_STRING = "PAPB_VC3";
|
|
||||||
const char *PDEC_HANDLER_STRING = "PDEC_HANDLER";
|
const char *PDEC_HANDLER_STRING = "PDEC_HANDLER";
|
||||||
const char *CCSDS_HANDLER_STRING = "CCSDS_HANDLER";
|
const char *CCSDS_HANDLER_STRING = "CCSDS_HANDLER";
|
||||||
const char *PUS_SERVICE_6_STRING = "PUS_SERVICE_6";
|
const char *PUS_SERVICE_6_STRING = "PUS_SERVICE_6";
|
||||||
@ -101,6 +97,7 @@ const char *PUS_SERVICE_17_TEST_STRING = "PUS_SERVICE_17_TEST";
|
|||||||
const char *PUS_SERVICE_20_PARAMETERS_STRING = "PUS_SERVICE_20_PARAMETERS";
|
const char *PUS_SERVICE_20_PARAMETERS_STRING = "PUS_SERVICE_20_PARAMETERS";
|
||||||
const char *PUS_SERVICE_200_MODE_MGMT_STRING = "PUS_SERVICE_200_MODE_MGMT";
|
const char *PUS_SERVICE_200_MODE_MGMT_STRING = "PUS_SERVICE_200_MODE_MGMT";
|
||||||
const char *PUS_SERVICE_201_HEALTH_STRING = "PUS_SERVICE_201_HEALTH";
|
const char *PUS_SERVICE_201_HEALTH_STRING = "PUS_SERVICE_201_HEALTH";
|
||||||
|
const char *CFDP_PACKET_DISTRIBUTOR_STRING = "CFDP_PACKET_DISTRIBUTOR";
|
||||||
const char *HEALTH_TABLE_STRING = "HEALTH_TABLE";
|
const char *HEALTH_TABLE_STRING = "HEALTH_TABLE";
|
||||||
const char *MODE_STORE_STRING = "MODE_STORE";
|
const char *MODE_STORE_STRING = "MODE_STORE";
|
||||||
const char *EVENT_MANAGER_STRING = "EVENT_MANAGER";
|
const char *EVENT_MANAGER_STRING = "EVENT_MANAGER";
|
||||||
@ -183,9 +180,7 @@ const char* translateObject(object_id_t object) {
|
|||||||
case 0x44130001:
|
case 0x44130001:
|
||||||
return STAR_TRACKER_STRING;
|
return STAR_TRACKER_STRING;
|
||||||
case 0x44130045:
|
case 0x44130045:
|
||||||
return GPS0_HANDLER_STRING;
|
return GPS_CONTROLLER_STRING;
|
||||||
case 0x44130146:
|
|
||||||
return GPS1_HANDLER_STRING;
|
|
||||||
case 0x44140014:
|
case 0x44140014:
|
||||||
return IMTQ_HANDLER_STRING;
|
return IMTQ_HANDLER_STRING;
|
||||||
case 0x442000A1:
|
case 0x442000A1:
|
||||||
@ -198,6 +193,8 @@ const char* translateObject(object_id_t object) {
|
|||||||
return PDU2_HANDLER_STRING;
|
return PDU2_HANDLER_STRING;
|
||||||
case 0x44250003:
|
case 0x44250003:
|
||||||
return ACU_HANDLER_STRING;
|
return ACU_HANDLER_STRING;
|
||||||
|
case 0x44260000:
|
||||||
|
return BPX_BATT_HANDLER_STRING;
|
||||||
case 0x443200A5:
|
case 0x443200A5:
|
||||||
return RAD_SENSOR_STRING;
|
return RAD_SENSOR_STRING;
|
||||||
case 0x44330000:
|
case 0x44330000:
|
||||||
@ -277,14 +274,6 @@ const char* translateObject(object_id_t object) {
|
|||||||
case 0x50000600:
|
case 0x50000600:
|
||||||
return PTME_STRING;
|
return PTME_STRING;
|
||||||
case 0x50000700:
|
case 0x50000700:
|
||||||
return PAPB_VC0_STRING;
|
|
||||||
case 0x50000701:
|
|
||||||
return PAPB_VC1_STRING;
|
|
||||||
case 0x50000702:
|
|
||||||
return PAPB_VC2_STRING;
|
|
||||||
case 0x50000703:
|
|
||||||
return PAPB_VC3_STRING;
|
|
||||||
case 0x50000704:
|
|
||||||
return PDEC_HANDLER_STRING;
|
return PDEC_HANDLER_STRING;
|
||||||
case 0x50000800:
|
case 0x50000800:
|
||||||
return CCSDS_HANDLER_STRING;
|
return CCSDS_HANDLER_STRING;
|
||||||
@ -312,6 +301,8 @@ const char* translateObject(object_id_t object) {
|
|||||||
return PUS_SERVICE_200_MODE_MGMT_STRING;
|
return PUS_SERVICE_200_MODE_MGMT_STRING;
|
||||||
case 0x53000201:
|
case 0x53000201:
|
||||||
return PUS_SERVICE_201_HEALTH_STRING;
|
return PUS_SERVICE_201_HEALTH_STRING;
|
||||||
|
case 0x53001000:
|
||||||
|
return CFDP_PACKET_DISTRIBUTOR_STRING;
|
||||||
case 0x53010000:
|
case 0x53010000:
|
||||||
return HEALTH_TABLE_STRING;
|
return HEALTH_TABLE_STRING;
|
||||||
case 0x53010100:
|
case 0x53010100:
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @brief Auto-generated object translation file.
|
* @brief Auto-generated object translation file.
|
||||||
* @details
|
* @details
|
||||||
* Contains 113 translations.
|
* Contains 110 translations.
|
||||||
* Generated on: 2022-01-17 15:36:10
|
* Generated on: 2022-02-03 12:01:36
|
||||||
*/
|
*/
|
||||||
#include "translateObjects.h"
|
#include "translateObjects.h"
|
||||||
|
|
||||||
@ -36,14 +36,14 @@ const char *MGM_3_RM3100_HANDLER_STRING = "MGM_3_RM3100_HANDLER";
|
|||||||
const char *GYRO_3_L3G_HANDLER_STRING = "GYRO_3_L3G_HANDLER";
|
const char *GYRO_3_L3G_HANDLER_STRING = "GYRO_3_L3G_HANDLER";
|
||||||
const char *RW4_STRING = "RW4";
|
const char *RW4_STRING = "RW4";
|
||||||
const char *STAR_TRACKER_STRING = "STAR_TRACKER";
|
const char *STAR_TRACKER_STRING = "STAR_TRACKER";
|
||||||
const char *GPS0_HANDLER_STRING = "GPS0_HANDLER";
|
const char *GPS_CONTROLLER_STRING = "GPS_CONTROLLER";
|
||||||
const char *GPS1_HANDLER_STRING = "GPS1_HANDLER";
|
|
||||||
const char *IMTQ_HANDLER_STRING = "IMTQ_HANDLER";
|
const char *IMTQ_HANDLER_STRING = "IMTQ_HANDLER";
|
||||||
const char *PCDU_HANDLER_STRING = "PCDU_HANDLER";
|
const char *PCDU_HANDLER_STRING = "PCDU_HANDLER";
|
||||||
const char *P60DOCK_HANDLER_STRING = "P60DOCK_HANDLER";
|
const char *P60DOCK_HANDLER_STRING = "P60DOCK_HANDLER";
|
||||||
const char *PDU1_HANDLER_STRING = "PDU1_HANDLER";
|
const char *PDU1_HANDLER_STRING = "PDU1_HANDLER";
|
||||||
const char *PDU2_HANDLER_STRING = "PDU2_HANDLER";
|
const char *PDU2_HANDLER_STRING = "PDU2_HANDLER";
|
||||||
const char *ACU_HANDLER_STRING = "ACU_HANDLER";
|
const char *ACU_HANDLER_STRING = "ACU_HANDLER";
|
||||||
|
const char *BPX_BATT_HANDLER_STRING = "BPX_BATT_HANDLER";
|
||||||
const char *RAD_SENSOR_STRING = "RAD_SENSOR";
|
const char *RAD_SENSOR_STRING = "RAD_SENSOR";
|
||||||
const char *PLOC_UPDATER_STRING = "PLOC_UPDATER";
|
const char *PLOC_UPDATER_STRING = "PLOC_UPDATER";
|
||||||
const char *PLOC_MEMORY_DUMPER_STRING = "PLOC_MEMORY_DUMPER";
|
const char *PLOC_MEMORY_DUMPER_STRING = "PLOC_MEMORY_DUMPER";
|
||||||
@ -83,10 +83,6 @@ const char *TMTC_BRIDGE_STRING = "TMTC_BRIDGE";
|
|||||||
const char *TMTC_POLLING_TASK_STRING = "TMTC_POLLING_TASK";
|
const char *TMTC_POLLING_TASK_STRING = "TMTC_POLLING_TASK";
|
||||||
const char *FILE_SYSTEM_HANDLER_STRING = "FILE_SYSTEM_HANDLER";
|
const char *FILE_SYSTEM_HANDLER_STRING = "FILE_SYSTEM_HANDLER";
|
||||||
const char *PTME_STRING = "PTME";
|
const char *PTME_STRING = "PTME";
|
||||||
const char *PAPB_VC0_STRING = "PAPB_VC0";
|
|
||||||
const char *PAPB_VC1_STRING = "PAPB_VC1";
|
|
||||||
const char *PAPB_VC2_STRING = "PAPB_VC2";
|
|
||||||
const char *PAPB_VC3_STRING = "PAPB_VC3";
|
|
||||||
const char *PDEC_HANDLER_STRING = "PDEC_HANDLER";
|
const char *PDEC_HANDLER_STRING = "PDEC_HANDLER";
|
||||||
const char *CCSDS_HANDLER_STRING = "CCSDS_HANDLER";
|
const char *CCSDS_HANDLER_STRING = "CCSDS_HANDLER";
|
||||||
const char *PUS_SERVICE_6_STRING = "PUS_SERVICE_6";
|
const char *PUS_SERVICE_6_STRING = "PUS_SERVICE_6";
|
||||||
@ -101,6 +97,7 @@ const char *PUS_SERVICE_17_TEST_STRING = "PUS_SERVICE_17_TEST";
|
|||||||
const char *PUS_SERVICE_20_PARAMETERS_STRING = "PUS_SERVICE_20_PARAMETERS";
|
const char *PUS_SERVICE_20_PARAMETERS_STRING = "PUS_SERVICE_20_PARAMETERS";
|
||||||
const char *PUS_SERVICE_200_MODE_MGMT_STRING = "PUS_SERVICE_200_MODE_MGMT";
|
const char *PUS_SERVICE_200_MODE_MGMT_STRING = "PUS_SERVICE_200_MODE_MGMT";
|
||||||
const char *PUS_SERVICE_201_HEALTH_STRING = "PUS_SERVICE_201_HEALTH";
|
const char *PUS_SERVICE_201_HEALTH_STRING = "PUS_SERVICE_201_HEALTH";
|
||||||
|
const char *CFDP_PACKET_DISTRIBUTOR_STRING = "CFDP_PACKET_DISTRIBUTOR";
|
||||||
const char *HEALTH_TABLE_STRING = "HEALTH_TABLE";
|
const char *HEALTH_TABLE_STRING = "HEALTH_TABLE";
|
||||||
const char *MODE_STORE_STRING = "MODE_STORE";
|
const char *MODE_STORE_STRING = "MODE_STORE";
|
||||||
const char *EVENT_MANAGER_STRING = "EVENT_MANAGER";
|
const char *EVENT_MANAGER_STRING = "EVENT_MANAGER";
|
||||||
@ -120,8 +117,8 @@ const char *TM_FUNNEL_STRING = "TM_FUNNEL";
|
|||||||
const char *CCSDS_IP_CORE_BRIDGE_STRING = "CCSDS_IP_CORE_BRIDGE";
|
const char *CCSDS_IP_CORE_BRIDGE_STRING = "CCSDS_IP_CORE_BRIDGE";
|
||||||
const char *NO_OBJECT_STRING = "NO_OBJECT";
|
const char *NO_OBJECT_STRING = "NO_OBJECT";
|
||||||
|
|
||||||
const char *translateObject(object_id_t object) {
|
const char* translateObject(object_id_t object) {
|
||||||
switch ((object & 0xFFFFFFFF)) {
|
switch( (object & 0xFFFFFFFF) ) {
|
||||||
case 0x00005060:
|
case 0x00005060:
|
||||||
return P60DOCK_TEST_TASK_STRING;
|
return P60DOCK_TEST_TASK_STRING;
|
||||||
case 0x43000003:
|
case 0x43000003:
|
||||||
@ -183,9 +180,7 @@ const char *translateObject(object_id_t object) {
|
|||||||
case 0x44130001:
|
case 0x44130001:
|
||||||
return STAR_TRACKER_STRING;
|
return STAR_TRACKER_STRING;
|
||||||
case 0x44130045:
|
case 0x44130045:
|
||||||
return GPS0_HANDLER_STRING;
|
return GPS_CONTROLLER_STRING;
|
||||||
case 0x44130146:
|
|
||||||
return GPS1_HANDLER_STRING;
|
|
||||||
case 0x44140014:
|
case 0x44140014:
|
||||||
return IMTQ_HANDLER_STRING;
|
return IMTQ_HANDLER_STRING;
|
||||||
case 0x442000A1:
|
case 0x442000A1:
|
||||||
@ -198,6 +193,8 @@ const char *translateObject(object_id_t object) {
|
|||||||
return PDU2_HANDLER_STRING;
|
return PDU2_HANDLER_STRING;
|
||||||
case 0x44250003:
|
case 0x44250003:
|
||||||
return ACU_HANDLER_STRING;
|
return ACU_HANDLER_STRING;
|
||||||
|
case 0x44260000:
|
||||||
|
return BPX_BATT_HANDLER_STRING;
|
||||||
case 0x443200A5:
|
case 0x443200A5:
|
||||||
return RAD_SENSOR_STRING;
|
return RAD_SENSOR_STRING;
|
||||||
case 0x44330000:
|
case 0x44330000:
|
||||||
@ -277,14 +274,6 @@ const char *translateObject(object_id_t object) {
|
|||||||
case 0x50000600:
|
case 0x50000600:
|
||||||
return PTME_STRING;
|
return PTME_STRING;
|
||||||
case 0x50000700:
|
case 0x50000700:
|
||||||
return PAPB_VC0_STRING;
|
|
||||||
case 0x50000701:
|
|
||||||
return PAPB_VC1_STRING;
|
|
||||||
case 0x50000702:
|
|
||||||
return PAPB_VC2_STRING;
|
|
||||||
case 0x50000703:
|
|
||||||
return PAPB_VC3_STRING;
|
|
||||||
case 0x50000704:
|
|
||||||
return PDEC_HANDLER_STRING;
|
return PDEC_HANDLER_STRING;
|
||||||
case 0x50000800:
|
case 0x50000800:
|
||||||
return CCSDS_HANDLER_STRING;
|
return CCSDS_HANDLER_STRING;
|
||||||
@ -312,6 +301,8 @@ const char *translateObject(object_id_t object) {
|
|||||||
return PUS_SERVICE_200_MODE_MGMT_STRING;
|
return PUS_SERVICE_200_MODE_MGMT_STRING;
|
||||||
case 0x53000201:
|
case 0x53000201:
|
||||||
return PUS_SERVICE_201_HEALTH_STRING;
|
return PUS_SERVICE_201_HEALTH_STRING;
|
||||||
|
case 0x53001000:
|
||||||
|
return CFDP_PACKET_DISTRIBUTOR_STRING;
|
||||||
case 0x53010000:
|
case 0x53010000:
|
||||||
return HEALTH_TABLE_STRING;
|
return HEALTH_TABLE_STRING;
|
||||||
case 0x53010100:
|
case 0x53010100:
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
#include <fsfw/datapool/PoolReadGuard.h>
|
#include <fsfw/datapool/PoolReadGuard.h>
|
||||||
|
|
||||||
BpxBatteryHandler::BpxBatteryHandler(object_id_t objectId, object_id_t comIF, CookieIF* comCookie)
|
BpxBatteryHandler::BpxBatteryHandler(object_id_t objectId, object_id_t comIF, CookieIF* comCookie)
|
||||||
: DeviceHandlerBase(objectId, comIF, comCookie), hkSet(this), cfgSet(this) {}
|
: DeviceHandlerBase(objectId, comIF, comCookie), hkSet(this), cfgSet(this) {
|
||||||
|
}
|
||||||
|
|
||||||
BpxBatteryHandler::~BpxBatteryHandler() {}
|
BpxBatteryHandler::~BpxBatteryHandler() {}
|
||||||
|
|
||||||
@ -203,6 +204,9 @@ ReturnValue_t BpxBatteryHandler::interpretDeviceReply(DeviceCommandId_t id, cons
|
|||||||
if (packet[0] != sentPingByte) {
|
if (packet[0] != sentPingByte) {
|
||||||
return DeviceHandlerIF::INVALID_DATA;
|
return DeviceHandlerIF::INVALID_DATA;
|
||||||
}
|
}
|
||||||
|
if(mode == _MODE_START_UP) {
|
||||||
|
commandExecuted = true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case (BpxBattery::RESET_COUNTERS):
|
case (BpxBattery::RESET_COUNTERS):
|
||||||
|
@ -38,8 +38,8 @@ static constexpr DeviceCommandId_t MAN_HEAT_OFF = 11;
|
|||||||
static constexpr uint8_t RESET_COUNTERS_MAGIC_VALUE = 0x42;
|
static constexpr uint8_t RESET_COUNTERS_MAGIC_VALUE = 0x42;
|
||||||
static constexpr uint8_t DEFAULT_PING_SENT_BYTE = 0x07;
|
static constexpr uint8_t DEFAULT_PING_SENT_BYTE = 0x07;
|
||||||
|
|
||||||
static constexpr uint32_t HK_SET_ID = 0;
|
static constexpr uint32_t HK_SET_ID = GET_HK;
|
||||||
static constexpr uint32_t CFG_SET_ID = 1;
|
static constexpr uint32_t CFG_SET_ID = CONFIG_GET;
|
||||||
|
|
||||||
static constexpr uint8_t PORT_PING = 1;
|
static constexpr uint8_t PORT_PING = 1;
|
||||||
static constexpr uint8_t PORT_REBOOT = 4;
|
static constexpr uint8_t PORT_REBOOT = 4;
|
||||||
@ -166,7 +166,6 @@ class BpxBatteryHk : public StaticLocalDataSet<BpxBattery::HK_ENTRIES> {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
//! Charge current in mA
|
//! Charge current in mA
|
||||||
lp_var_t<uint16_t> chargeCurrent =
|
lp_var_t<uint16_t> chargeCurrent =
|
||||||
lp_var_t<uint16_t>(sid.objectId, BpxBattery::HkPoolIds::CHARGE_CURRENT, this);
|
lp_var_t<uint16_t>(sid.objectId, BpxBattery::HkPoolIds::CHARGE_CURRENT, this);
|
||||||
@ -181,22 +180,24 @@ class BpxBatteryHk : public StaticLocalDataSet<BpxBattery::HK_ENTRIES> {
|
|||||||
lp_var_t<uint16_t> battVoltage =
|
lp_var_t<uint16_t> battVoltage =
|
||||||
lp_var_t<uint16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_VOLTAGE, this);
|
lp_var_t<uint16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_VOLTAGE, this);
|
||||||
//! Battery temperature 1 in degC
|
//! Battery temperature 1 in degC
|
||||||
SerializeElement<int16_t> battTemp1 =
|
lp_var_t<int16_t> battTemp1 =
|
||||||
lp_var_t<int16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_TEMP_1, this);
|
lp_var_t<int16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_TEMP_1, this);
|
||||||
//! Battery temperature 2 in degC
|
//! Battery temperature 2 in degC
|
||||||
SerializeElement<int16_t> battTemp2 =
|
lp_var_t<int16_t> battTemp2 =
|
||||||
lp_var_t<int16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_TEMP_2, this);
|
lp_var_t<int16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_TEMP_2, this);
|
||||||
//! Battery temperature 3 in degC
|
//! Battery temperature 3 in degC
|
||||||
SerializeElement<int16_t> battTemp3 =
|
lp_var_t<int16_t> battTemp3 =
|
||||||
lp_var_t<int16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_TEMP_3, this);
|
lp_var_t<int16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_TEMP_3, this);
|
||||||
//! Battery temperature 4 in degC
|
//! Battery temperature 4 in degC
|
||||||
SerializeElement<int16_t> battTemp4 =
|
lp_var_t<int16_t> battTemp4 =
|
||||||
lp_var_t<int16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_TEMP_4, this);
|
lp_var_t<int16_t>(sid.objectId, BpxBattery::HkPoolIds::BATT_TEMP_4, this);
|
||||||
SerializeElement<uint32_t> rebootCounter =
|
lp_var_t<uint32_t> rebootCounter =
|
||||||
lp_var_t<uint32_t>(sid.objectId, BpxBattery::HkPoolIds::REBOOT_COUNTER, this);
|
lp_var_t<uint32_t>(sid.objectId, BpxBattery::HkPoolIds::REBOOT_COUNTER, this);
|
||||||
SerializeElement<uint8_t> bootcause =
|
lp_var_t<uint8_t> bootcause =
|
||||||
lp_var_t<uint8_t>(sid.objectId, BpxBattery::HkPoolIds::BOOTCAUSE, this);
|
lp_var_t<uint8_t>(sid.objectId, BpxBattery::HkPoolIds::BOOTCAUSE, this);
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
friend class BpxBatteryHandler;
|
friend class BpxBatteryHandler;
|
||||||
/**
|
/**
|
||||||
* Constructor for data creator
|
* Constructor for data creator
|
||||||
|
Loading…
Reference in New Issue
Block a user