assign power switcher for imtq and star tracker
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...

This commit is contained in:
Robin Müller 2022-04-13 18:55:07 +02:00
parent a72c2f7b7d
commit fd3313fc62
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -161,6 +161,7 @@ void ObjectFactory::produce(void* args) {
I2cCookie* imtqI2cCookie =
new I2cCookie(addresses::IMTQ, IMTQ::MAX_REPLY_SIZE, q7s::I2C_DEFAULT_DEV);
auto imtqHandler = new IMTQHandler(objects::IMTQ_HANDLER, objects::I2C_COM_IF, imtqI2cCookie);
imtqHandler->setPowerSwitcher(pwrSwitcher);
static_cast<void>(imtqHandler);
#if OBSW_DEBUG_IMTQ == 1
imtqHandler->setStartUpImmediately();
@ -192,8 +193,9 @@ void ObjectFactory::produce(void* args) {
UartModes::NON_CANONICAL);
starTrackerCookie->setNoFixedSizeReply();
StrHelper* strHelper = new StrHelper(objects::STR_HELPER);
new StarTrackerHandler(objects::STAR_TRACKER, objects::UART_COM_IF, starTrackerCookie, strHelper,
pcdu::PDU1_CH2_STAR_TRACKER_5V);
auto starTracker = new StarTrackerHandler(objects::STAR_TRACKER, objects::UART_COM_IF,
starTrackerCookie, strHelper, pcdu::PDU1_CH2_STAR_TRACKER_5V);
starTracker->setPowerSwitcher(pwrSwitcher);
#endif /* OBSW_ADD_STAR_TRACKER == 1 */