Remove arduino reference
This commit is contained in:
parent
8246b2708a
commit
c70860bd66
@ -4,7 +4,7 @@
|
||||
#include "NetworkSync.h"
|
||||
#include "Switch.h"
|
||||
|
||||
#include <Arduino.h>
|
||||
// #include <Arduino.h>
|
||||
#include <math.h>
|
||||
|
||||
Perception::Perception() {
|
||||
@ -190,7 +190,7 @@ void Perception::AddPerceivedObject(Sensor *sensor, Polar position) {
|
||||
// max number of objects)
|
||||
if (availableSlotIx < maxObjectCount) {
|
||||
// a slot is available
|
||||
printf("[%d] new object \n", availableSlotIx);
|
||||
// printf("[%d] new object \n", availableSlotIx);
|
||||
this->perceivedObjects[availableSlotIx] = obj;
|
||||
}
|
||||
// If this object is closer than the farthest object, then replace it
|
||||
@ -253,7 +253,7 @@ void Perception::Update(float currentTimeMs) {
|
||||
|
||||
if (obj->DegradeConfidence(deltaTime) == false) {
|
||||
// delete obj
|
||||
printf("[%d] delete object\n", objIx);
|
||||
// printf("[%d] delete object\n", objIx);
|
||||
if (roboid != nullptr && roboid->networkSync != nullptr)
|
||||
roboid->networkSync->DestroyObject(obj);
|
||||
this->perceivedObjects[objIx] = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user