-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_config_full.py
52 lines (46 loc) · 1.43 KB
/
my_config_full.py
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
#
# Config for (takeoff_full.py)
#
class ArduConfig:
# maximum buffer to look for object in
MAX_BUFF = 20
# detected time before object is considrerd detected
DETECT_BUFF = 5
# sleep time for loop
LOOP_SPEED = 0.1
max_box = 55
# safe altitude
SAFE_ALT = 5.0
# safe altitude
SAFE_ALT_aft = 0.3
# alttitude change
ALT_CHANGE = 0.5
# alttitude change
ALT_CHANGE_aft = 0.1
#Image width=416, Dead zone area = [ 138-278 ], Left Partition =[0 - 138]
#Right Partitioin= [278 - 416]
#Image height=416, Dead zone area = [ 138-278 ], UPPER Partition =[0 - 138]
#LOWER Partitioin= [278 - 416]
# what is considered the left side of the frame in pixels
#Note: Real Sense Camera Frame : 640x480
LEFT_PARTITION = 320-100
# what is considered the right side of the frame in pixels
RIGHT_PARTITION =320+100
# what is considered the upper side of the frame in pixels
UPPER_PARTITION = 240-100
# what is considered the down side of the frame in pixels
LOWER_PARTITION = 240+100
# turn speed slow
TURN_SLOW_SPEED = 5
# turn speed fast
TURN_FAST_SPEED = 5
# foreward speed when object is centred
FOREWARD_SPEED = 1
# BACKWARD speed when object is centred
BACKWARD_SPEED = -1
# time spent moving foreward
FOREWARD_DURATION = 1
BACKWARD_DURATION = 1
# foreward 1 , stop 0
FOREWARD_BOOL = 0
BACKWARD_BOOL = 0