added second tmp1075

This commit is contained in:
2021-01-12 11:17:36 +01:00
parent 249f5c4e73
commit 656f80e419
3 changed files with 19 additions and 1 deletions

View File

@ -57,6 +57,8 @@ void ObjectFactory::produce(){
addresses::ACU);
I2cCookie* i2cCookieTmp1075tcs1 = new I2cCookie(addresses::TMP1075_TCS_1,
TMP1075::MAX_REPLY_LENGTH, std::string("/dev/i2c-1"));
I2cCookie* i2cCookieTmp1075tcs2 = new I2cCookie(addresses::TMP1075_TCS_2,
TMP1075::MAX_REPLY_LENGTH, std::string("/dev/i2c-1"));
/* Communication interfaces */
new CspComIF(objects::CSP_COM_IF);
@ -79,6 +81,10 @@ void ObjectFactory::produce(){
objects::TMP1075_HANDLER_1, objects::I2C_COM_IF,
i2cCookieTmp1075tcs1);
tmp1075Handler_1->setStartUpImmediately();
Tmp1075Handler* tmp1075Handler_2 = new Tmp1075Handler(
objects::TMP1075_HANDLER_2, objects::I2C_COM_IF,
i2cCookieTmp1075tcs2);
tmp1075Handler_2->setStartUpImmediately();
new TmTcUnixUdpBridge(objects::UDP_BRIDGE,