make confidence unsigned char

This commit is contained in:
Pascal Serrarens 2023-12-31 17:10:31 +01:00
parent de5832b413
commit 93065935ad

View File

@ -18,9 +18,10 @@ public:
float radius; float radius;
Sensor *sensor = nullptr; Sensor *sensor = nullptr;
static constexpr char maxConfidence = 255; static constexpr unsigned char maxConfidence = 255;
static constexpr char confidenceDropSpeed = 2; static constexpr unsigned char confidenceDropSpeed = 2;
char confidence; unsigned char confidence;
bool DegradeConfidence(float deltaTime); bool DegradeConfidence(float deltaTime);
void Refresh(Polar position, float radius); void Refresh(Polar position, float radius);
}; };