-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ic
33 lines (29 loc) · 905 Bytes
/
config.ic
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
/** File: config.ic
Purpose: Main configuration file for program.
Parameters: See file contents.
Author: Gabriel Krell
Initial commit date: 9/30
**/
// ---- ports: ----
int MOTOR_R = 1;
int MOTOR_L = 3;
int LIGHT = 2; // treated as a motor so we can dim it with PWM
int LSENS = 6;
int RSENS = 5;
// --- modes: ---
int DEBUG_MODE = 1; // beep to indicate states?
int BACKUP_MODE = 1; // turn on the spot?
int PLAY_TETRIS = 0;
int TETRIS_BPM = 60;
int LINE_FOLLOW_SIDE = 0; // 0:left side, 1:right side
int DELIBERATE = 1; // pause after turning, moving, etc?
// ---- config: ---
int MOTOR_R_SPEED = 100; // adjust to fix drift
int MOTOR_L_SPEED = 100;
int LIGHT_POWER = 12; // configure with light_config()
int L_THRESH = 62; // configure with sens_config()
int R_THRESH = 61; // configure with sens_config()
// ----- variables: -----
int LIGHT_STATE = 0;
int bpm;
int fast_actions_remaining = 0;