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)
|
||||
continue;
|
||||
|
||||
std::cout << "Update thing " << (int)thing->id << std::endl;
|
||||
if (this->isIsolated == false) {
|
||||
PoseMsg* poseMsg = new PoseMsg(this->networkId, thing);
|
||||
this->Send(thing->owner, poseMsg);
|
||||
@ -353,7 +354,8 @@ void ParticipantUDP::Process(Participant* sender, InvestigateMsg* msg) {
|
||||
void ParticipantUDP::Process(Participant* sender, ThingMsg* msg) {
|
||||
#if defined(DEBUG)
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ Thing::Thing(Participant* owner, int thingType, unsigned char thingId) {
|
||||
|
||||
// std::cout << "add thing [" << (int)this->id << "] to owner "
|
||||
// << this->owner->ipAddress << ":" << this->owner->port << std::endl;
|
||||
this->owner->Add(this, false);
|
||||
this->owner->Add(this, true);
|
||||
}
|
||||
|
||||
// Thing::Thing(Participant* owner,
|
||||
|
Loading…
x
Reference in New Issue
Block a user