DetectionSensor: more flexible triggering

This commit is contained in:
Augusto Zanellato
2024-09-19 21:59:42 +02:00
parent 114df8cb1b
commit be01c18c74
4 changed files with 96 additions and 26 deletions

View File

@@ -15,8 +15,9 @@ class DetectionSensorModule : public SinglePortModule, private concurrency::OSTh
private:
bool firstTime = true;
uint32_t lastSentToMesh = 0;
bool wasDetected = false;
void sendDetectionMessage();
void sendCurrentStateMessage();
void sendCurrentStateMessage(bool state);
bool hasDetectionEvent();
};