File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 30
30
CONF_RESTORE_VALUES : 'set_restore_values' ,
31
31
CONF_INVERT_DIRECTION : 'set_invert_direction' ,
32
32
CONF_ADVISED_SENSOR_ORIENTATION : 'set_advised_sensor_orientation' ,
33
+ CONF_CALIBRATION : 'set_calibration' ,
34
+ CONF_ROI_CALIBRATION : 'set_roi_calibration'
33
35
}
34
36
CONFIG_SCHEMA = (
35
37
cv .Schema (
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ namespace esphome
228
228
delay (1000 );
229
229
int ROI_size = min (8 , max (4 , function_of_the_distance));
230
230
Roode::roi_width_ = ROI_size;
231
- Roode::roi_height_ = ROI_size;
231
+ Roode::roi_height_ = ROI_size* 2 ;
232
232
233
233
delay (250 );
234
234
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace esphome
15
15
{
16
16
#define NOBODY 0
17
17
#define SOMEONE 1
18
- #define VERSION " v1.3"
18
+ #define VERSION " v1.3.1 "
19
19
#define EEPROM_SIZE 512
20
20
static int LEFT = 0 ;
21
21
static int RIGHT = 1 ;
@@ -57,6 +57,7 @@ namespace esphome
57
57
void dump_config () override ;
58
58
59
59
void set_calibration (bool val) { calibration_ = val; }
60
+ void set_roi_calibration (bool val) { roi_calibration_ = val; }
60
61
void set_max_threshold_percentage (int val) { max_threshold_percentage_ = val; }
61
62
void set_min_threshold_percentage (int val) { min_threshold_percentage_ = val; }
62
63
void set_roi_height (int height) { roi_height_ = height; }
You can’t perform that action at this time.
0 commit comments