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;
Sensor *sensor = nullptr;
static constexpr char maxConfidence = 255;
static constexpr char confidenceDropSpeed = 2;
char confidence;
static constexpr unsigned char maxConfidence = 255;
static constexpr unsigned char confidenceDropSpeed = 2;
unsigned char confidence;
bool DegradeConfidence(float deltaTime);
void Refresh(Polar position, float radius);
};