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