-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
diagram.puml
51 lines (46 loc) · 1.6 KB
/
diagram.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@startuml
class Roode {
+ void setup()
+ void update()
+ void loop()
+ void dump_config()
+ void getZoneDistance()
+ void sendCounter(uint16_t counter)
+ void recalibration()
+ bool handleSensorStatus()
+ uint16_t getDistance()
+ VL53L1_Error sensor_status = VL53L1_ERROR_NONE
+ VL53L1_Error last_sensor_status = VL53L1_ERROR_NONE
# VL53L1X_ULD distanceSensor
}
class Configuration {
+ Zone getZoneConfigraution(uint8_t zone)
+ int getTimingBudget()
# void setCorrectDistanceSettings(float average_entry_zone_distance, float average_exit_zone_distance)
# void publishSensorConfiguration(int DIST_THRESHOLD_ARR[2], bool isMax)
# void setSensorMode(int sensor_mode, int timing_budget = 0)
}
class Zone {
+ Zone(Configuration *configuration)
+ void calibrateThreshold(VL53L1X_ULD distanceSensor)
+ void calibrateRoi(VL53L1X_ULD distanceSensor)
+ uint16_t getMaxThreshold()
+ uint16_t getMinThreshold()
+ uint16_t getROIWidth()
+ uint16_t getROIHeight()
+ uint8_t getROICenter()
# int getOptimizedValues(int *values, int sum, int size)
# int getSum(int *values, int size)
}
class PersistedNumber {
+ float get_setup_priority() const override { return setup_priority::HARDWARE; }
+ void set_restore_value(bool restore) { this->restore_value_ = restore; }
+ void setup() override;
# void control(float value) override
# bool restore_value_{false}
# ESPPreferenceObject pref_
}
Roode --> "<<instantiate>>" Configuration
Roode --> "<<instantiate>>" Zone
Roode --> "<<instantiate>>" PersistedNumber
@enduml