FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit df7ea7d8 authored by ayush1301's avatar ayush1301
Browse files

Changing parameters on testing

parent f1c5d1df
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
uint8_t regions[2] = {BACKWARD, FORWARD};
uint8_t regions_opposite[2] = {FORWARD, BACKWARD};
int region = 1;
#define floating_avg_num 6
#define floating_avg_num 1
//Motors
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
......@@ -16,10 +16,10 @@ Adafruit_DCMotor *motors[] = {AFMS.getMotor(3), AFMS.getMotor(4)};
#define white 1
#define black 0
#define num_IR 4
int IR_threshold[num_IR] = {200, 200, 550, 550};
int IR_threshold[num_IR] = {100, 100, 550, 550};
float IR_avgs[num_IR] = {0}; //LRFB
int IR_colours[num_IR] = {0};
int IR_locns[num_IR] = {A1, A3, A2, A0};
int IR_locns[num_IR] = {A0, A3, A1, A2};
float IR_vals[num_IR][floating_avg_num] = {0}; //check
int IR_float_counter[num_IR] = {0};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment