-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.cfg
188 lines (119 loc) · 4.8 KB
/
settings.cfg
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
############# settings #############
# #
# part of LunAero_C #
# Wesley T. Honeycutt, 2020 #
# #
# Comment lines with octothorpe #
# Code lines must be \n terminated #
# #
####################################
### General settings
# Save log with debugging output (prints everything verbose)
DEBUG_COUT = true
# Duration to record video before starting a new one (in seconds)
RECORD_DURATION = 1800
# The name given to your external storage drive for videos
DRIVE_NAME = MOON1
# Should LunAero save a screenshot from the raspivid output every cycle?
# It will be saved to to /your/path/out.ppm
SAVE_DEBUG_IMAGE = false
### Keybindings
# If you want to use non-alphabetic keys, check to see what the key value is called before editing.
# Keybinding for quit command
KV_QUIT = q
# Keybinding for beginning the recording/entering automatic mode
KV_RUN = Return
# Keybinding for left manual motor movement.
KV_LEFT = Left
# Keybinding for right manual motor movement.
KV_RIGHT = Right
# Keybinding for up manual motor movement.
KV_UP = Up
# Keybinding for down manual motor movement.
KV_DOWN = Down
# Keybinding for motor stop command.
KV_STOP = space
# Keybinding for raspivid refresh command.
KV_REFRESH = z
# Keybinding for greatly increasing the shutter speed.
KV_S_UP_UP = g
# Keybinding for greatly decreasing the shutter speed.
KV_S_DOWN_DOWN = b
# Keybinding for increasing the shutter speed.
KV_S_UP = h
# Keybinding for decreasing the shutter speed.
KV_S_DOWN = n
# Keybinding for cycling the ISO value.
KV_ISO = i
### GUI settings
# Modifier value which effects the font size automatically determined for the GTK window
FONT_MOD = 20
# Number of milliseconds an emergency message should remain on the desktop before disappearing in the
# event of certain crash conditions.
EMG_DUR = 10
### Image processing settings
# Divisor for the number pixels on the top and bottom edges to warrant a move. Bigger is more sensitive.
EDGE_DIVISOR_W = 20
# Divisor for the number pixels on the left and right edges to warrant a move. Bigger is more sensitive.
EDGE_DIVISOR_H = 20
# Frequency which the automatic edge detection should occur. This is a value roughly in milliseconds,
# dependent on the cycle time of the processor.
# WARNING Editing this value changes a bunch of behaviors. You can touch it, but be careful.
FRAMECHECK_FREQ = 50
### Raspivid and Camera settings
# Number of MMAL errors encountered in a row before LunAero should crash with an error because something
# has gone wrong with the hardware.
MMAL_ERROR_THRESH = 100
# Recording framerate of the raspivid command
RPI_FPS = 30
# Recording bitrate for raspivid command
RPI_BR = 8000000
# Recording exposure mode for raspivid command. Use a string from this list:
# auto: use automatic exposure mode
# night: select setting for night shooting
# nightpreview:
# backlight: select setting for backlit subject
# spotlight:
# sports: select setting for sports (fast shutter etc.)
# snow: select setting optimised for snowy scenery
# beach: select setting optimised for beach
# verylong: select setting for long exposures
# fixedfps: constrain fps to a fixed value
# antishake: antishake mode
# fireworks: select setting optimised for fireworks
RPI_EX = auto
# Value to adjust the shutter speed when using up or down buttons.
SHUT_JUMP = 100
# Value to adjust the shutter speed when using the up-up or down-down buttons.
# Should be greater than SHUT_JUMP
SHUT_JUMP_BIG = 1000
# Threshold value for number of cycles the moon is "lost" for
LOST_THRESH = 30
### Motor and Speed settings
# Number of seconds the left-right motor should force high speed movement to compensate for loose
# laser cut gears.
LOOSE_WHEEL_DURATION = 2
# PWM operation frequency in Hz
FREQ = 10000
# Minimum allowable PWM duty cycle. Must be integer. Units are percent.
# This value does not impact the speed during manual mode.
MIN_DUTY = 20
# Maximum allowable PWM duty cycle. Must be integer. Units are percent.
# This value does not impact the speed during manual mode.
MAX_DUTY = 75
# Duty cycle threshold for slower braking of motors during the run. Must be integer. Units are percent.
# This value does not impact braking during manual mode
BRAKE_DUTY = 10
### Rasperry Pi GPIO Pin setup
# Raspberry Pi GPIO pin for motor A Soft PWM. BCM equivalent of 0 = 17
APINP = 0
# Raspberry Pi GPIO pin for motor A 1 pin. BCM equivalent of 2 = 27
APIN1 = 2
# Raspberry Pi GPIO pin for motor A 2 pin. BCM equivalent of 3 = 22
APIN2 = 3
# Raspberry Pi GPIO pin for motor B 1 pin. BCM equivalent of 12 = 10
BPIN1 = 12
# Raspberry Pi GPIO pin for motor B 2 pin. BCM equivalent of 13 = 9
BPIN2 = 13
# Raspberry Pi GPIO pin for motor A Soft PWM. BCM equivalent of 14 = 11
BPINP = 14