Attempts to get I2C communcation working
This commit is contained in:
parent
32ca8f5f71
commit
df19ecf953
@ -104,6 +104,7 @@ void ParticipantUDP::Update(unsigned long currentTimeMs) {
|
|||||||
if (thing == nullptr)
|
if (thing == nullptr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
std::cout << "Update thing " << (int)thing->id << std::endl;
|
||||||
if (this->isIsolated == false) {
|
if (this->isIsolated == false) {
|
||||||
PoseMsg* poseMsg = new PoseMsg(this->networkId, thing);
|
PoseMsg* poseMsg = new PoseMsg(this->networkId, thing);
|
||||||
this->Send(thing->owner, poseMsg);
|
this->Send(thing->owner, poseMsg);
|
||||||
@ -353,7 +354,8 @@ void ParticipantUDP::Process(Participant* sender, InvestigateMsg* msg) {
|
|||||||
void ParticipantUDP::Process(Participant* sender, ThingMsg* msg) {
|
void ParticipantUDP::Process(Participant* sender, ThingMsg* msg) {
|
||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
std::cout << this->name << ": process ThingMsg [" << (int)msg->networkId
|
std::cout << this->name << ": process ThingMsg [" << (int)msg->networkId
|
||||||
<< "/" << (int)msg->thingId << "] " << (int)msg->thingType << " " << (int)msg->parentId << "\n";
|
<< "/" << (int)msg->thingId << "] " << (int)msg->thingType << " "
|
||||||
|
<< (int)msg->parentId << "\n";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ Thing::Thing(Participant* owner, int thingType, unsigned char thingId) {
|
|||||||
|
|
||||||
// std::cout << "add thing [" << (int)this->id << "] to owner "
|
// std::cout << "add thing [" << (int)this->id << "] to owner "
|
||||||
// << this->owner->ipAddress << ":" << this->owner->port << std::endl;
|
// << this->owner->ipAddress << ":" << this->owner->port << std::endl;
|
||||||
this->owner->Add(this, false);
|
this->owner->Add(this, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Thing::Thing(Participant* owner,
|
// Thing::Thing(Participant* owner,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user