Remove arduino reference

This commit is contained in:
Pascal Serrarens 2023-12-31 10:00:10 +01:00
parent 8246b2708a
commit c70860bd66

View File

@ -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;