STR time #611
@ -138,9 +138,7 @@ void ObjectFactory::produce(void* args) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if OBSW_ADD_STAR_TRACKER == 1
|
#if OBSW_ADD_STAR_TRACKER == 1
|
||||||
// Missed reply threshold is higher on EM than default value because the ground STR received
|
createStrComponents(pwrSwitcher);
|
||||||
// from the Swedes is going weird things.
|
|
||||||
createStrComponents(pwrSwitcher, 30);
|
|
||||||
#endif /* OBSW_ADD_STAR_TRACKER == 1 */
|
#endif /* OBSW_ADD_STAR_TRACKER == 1 */
|
||||||
|
|
||||||
createPayloadComponents(gpioComIF, *pwrSwitcher);
|
createPayloadComponents(gpioComIF, *pwrSwitcher);
|
||||||
|
@ -102,7 +102,7 @@ void ObjectFactory::produce(void* args) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if OBSW_ADD_STAR_TRACKER == 1
|
#if OBSW_ADD_STAR_TRACKER == 1
|
||||||
createStrComponents(pwrSwitcher, 5);
|
createStrComponents(pwrSwitcher);
|
||||||
#endif /* OBSW_ADD_STAR_TRACKER == 1 */
|
#endif /* OBSW_ADD_STAR_TRACKER == 1 */
|
||||||
|
|
||||||
#if OBSW_ADD_CCSDS_IP_CORES == 1
|
#if OBSW_ADD_CCSDS_IP_CORES == 1
|
||||||
|
@ -928,8 +928,7 @@ void ObjectFactory::createTestComponents(LinuxLibgpioIF* gpioComIF) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectFactory::createStrComponents(PowerSwitchIF* pwrSwitcher,
|
void ObjectFactory::createStrComponents(PowerSwitchIF* pwrSwitcher) {
|
||||||
uint32_t missedReplyCountThreshold) {
|
|
||||||
auto* strAssy = new StrAssembly(objects::STR_ASSY);
|
auto* strAssy = new StrAssembly(objects::STR_ASSY);
|
||||||
strAssy->connectModeTreeParent(satsystem::acs::ACS_SUBSYSTEM);
|
strAssy->connectModeTreeParent(satsystem::acs::ACS_SUBSYSTEM);
|
||||||
auto* starTrackerCookie =
|
auto* starTrackerCookie =
|
||||||
@ -942,7 +941,7 @@ void ObjectFactory::createStrComponents(PowerSwitchIF* pwrSwitcher,
|
|||||||
if (paramJsonFile == nullptr) {
|
if (paramJsonFile == nullptr) {
|
||||||
sif::error << "No valid Star Tracker parameter JSON file" << std::endl;
|
sif::error << "No valid Star Tracker parameter JSON file" << std::endl;
|
||||||
}
|
}
|
||||||
auto strFdir = new StrFdir(objects::STAR_TRACKER, missedReplyCountThreshold);
|
auto strFdir = new StrFdir(objects::STAR_TRACKER);
|
||||||
auto starTracker =
|
auto starTracker =
|
||||||
new StarTrackerHandler(objects::STAR_TRACKER, objects::STR_COM_IF, starTrackerCookie,
|
new StarTrackerHandler(objects::STAR_TRACKER, objects::STR_COM_IF, starTrackerCookie,
|
||||||
paramJsonFile, strComIF, power::PDU1_CH2_STAR_TRACKER_5V);
|
paramJsonFile, strComIF, power::PDU1_CH2_STAR_TRACKER_5V);
|
||||||
|
@ -69,7 +69,7 @@ void createHeaterComponents(GpioIF* gpioIF, PowerSwitchIF* pwrSwitcher, HealthTa
|
|||||||
HeaterHandler*& heaterHandler);
|
HeaterHandler*& heaterHandler);
|
||||||
void createImtqComponents(PowerSwitchIF* pwrSwitcher, bool enableHkSets, const char* i2cDev);
|
void createImtqComponents(PowerSwitchIF* pwrSwitcher, bool enableHkSets, const char* i2cDev);
|
||||||
void createBpxBatteryComponent(bool enableHkSets, const char* i2cDev);
|
void createBpxBatteryComponent(bool enableHkSets, const char* i2cDev);
|
||||||
void createStrComponents(PowerSwitchIF* pwrSwitcher, uint32_t missedReplyCountThreshold);
|
void createStrComponents(PowerSwitchIF* pwrSwitcher);
|
||||||
void createSolarArrayDeploymentComponents(PowerSwitchIF& pwrSwitcher, GpioIF& gpioIF);
|
void createSolarArrayDeploymentComponents(PowerSwitchIF& pwrSwitcher, GpioIF& gpioIF);
|
||||||
void createSyrlinksComponents(PowerSwitchIF* pwrSwitcher);
|
void createSyrlinksComponents(PowerSwitchIF* pwrSwitcher);
|
||||||
void createPayloadComponents(LinuxLibgpioIF* gpioComIF, PowerSwitchIF& pwrSwitcher);
|
void createPayloadComponents(LinuxLibgpioIF* gpioComIF, PowerSwitchIF& pwrSwitcher);
|
||||||
|
@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
#include "mission/acs/defs.h"
|
#include "mission/acs/defs.h"
|
||||||
|
|
||||||
StrFdir::StrFdir(object_id_t strObject, uint32_t missedReplyThreshold)
|
StrFdir::StrFdir(object_id_t strObject)
|
||||||
: DeviceHandlerFailureIsolation(strObject, objects::NO_OBJECT) {
|
: DeviceHandlerFailureIsolation(strObject, objects::NO_OBJECT) {}
|
||||||
missedReplyCount.setFailureThreshold(missedReplyThreshold);
|
|
||||||
}
|
|
||||||
|
|
||||||
ReturnValue_t StrFdir::eventReceived(EventMessage* event) {
|
ReturnValue_t StrFdir::eventReceived(EventMessage* event) {
|
||||||
if (event->getEvent() == acs::MEKF_INVALID_MODE_VIOLATION) {
|
if (event->getEvent() == acs::MEKF_INVALID_MODE_VIOLATION) {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
class StrFdir : public DeviceHandlerFailureIsolation {
|
class StrFdir : public DeviceHandlerFailureIsolation {
|
||||||
public:
|
public:
|
||||||
StrFdir(object_id_t strObject, uint32_t missedReplyThreshold);
|
StrFdir(object_id_t strObject);
|
||||||
ReturnValue_t eventReceived(EventMessage* event) override;
|
ReturnValue_t eventReceived(EventMessage* event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user