Color sorting

10 replies [Last post]
TaosHigh
Title: NooBot
Joined: 04/09/2015
Posts:
BotPoints: 9
User offline. Last seen 2 years 28 weeks ago.

Having an issue while color sorting. I have a function that basically spins a conveyor belt and then checks the color of the pom in the box. I run this function in a loop in main. It runs once just fine, and works with either color. However, it only runs once. And then the robot stops. It never even reaches the return at the end of main.

Here is the code:

void sort_color(){

ao();
camera_open();
camera_update();
if (get_object_count(0)>0){ //if red
enable_servos;
set_servo_position(3, 360); //sweeps to left
set_servo_position(3, 1040);
msleep(1000);

}else if(get_object_count(1)>0){ //if green
enable_servos();
set_servo_position(3, 1600); //sweeps to right
msleep(1000);
set_servo_position(3, 1040);
msleep(1000);
}else{ //if no pom
mav(0, -1000);
msleep(1200); //spin more to try to find a pom

}
}

Any help would be greatly appreciated. Thanks! :)

addirigib
Title: NooBot
Joined: 12/27/2016
Posts:
BotPoints: 22
User offline. Last seen 50 weeks 2 days ago.

Scholarship essay writing service is our maximum popular carrier. We offer a complete questionnaire to begin the manner. Your job is to complete it, presenting us with a detailed illustration of your pursuits, accomplishments and attributes. The usage of our proprietary Biography system, our crew of proficient writers is able to craft an essay from scratch this is perfectly tailor made to you. The amazing benefit to you is that a person is finally capable of placed into words precisely what you need to carry to admissions officers.

best essay writing service

addirigib
Title: NooBot
Joined: 12/27/2016
Posts:
BotPoints: 22
User offline. Last seen 50 weeks 2 days ago.

Scholarship essay writing service is our maximum popular carrier. We offer a complete questionnaire to begin the manner. Your job is to complete it, presenting us with a detailed illustration of your pursuits, accomplishments and attributes. The usage of our proprietary Biography system, our crew of proficient writers is able to craft an essay from scratch this is perfectly tailor made to you. The amazing benefit to you is that a person is finally capable of placed into words precisely what you need to carry to admissions officers.

best essay writing service

addirigib
Title: NooBot
Joined: 12/27/2016
Posts:
BotPoints: 22
User offline. Last seen 50 weeks 2 days ago.

Scholarship essay writing service is our maximum popular carrier. We offer a complete questionnaire to begin the manner. Your job is to complete it, presenting us with a detailed illustration of your pursuits, accomplishments and attributes. The usage of our proprietary Biography system, our crew of proficient writers is able to craft an essay from scratch this is perfectly tailor made to you. The amazing benefit to you is that a person is finally capable of placed into words precisely what you need to carry to admissions officers.

best essay writing service

addirigib
Title: NooBot
Joined: 12/27/2016
Posts:
BotPoints: 22
User offline. Last seen 50 weeks 2 days ago.

Scholarship essay writing service is our maximum popular carrier. We offer a complete questionnaire to begin the manner. Your job is to complete it, presenting us with a detailed illustration of your pursuits, accomplishments and attributes. The usage of our proprietary Biography system, our crew of proficient writers is able to craft an essay from scratch this is perfectly tailor made to you. The amazing benefit to you is that a person is finally capable of placed into words precisely what you need to carry to admissions officers.

best essay writing service

addirigib
Title: NooBot
Joined: 12/27/2016
Posts:
BotPoints: 22
User offline. Last seen 50 weeks 2 days ago.

Scholarship essay writing service is our maximum popular carrier. We offer a complete questionnaire to begin the manner. Your job is to complete it, presenting us with a detailed illustration of your pursuits, accomplishments and attributes. The usage of our proprietary Biography system, our crew of proficient writers is able to craft an essay from scratch this is perfectly tailor made to you. The amazing benefit to you is that a person is finally capable of placed into words precisely what you need to carry to admissions officers.

best essay writing service

addirigib
Title: NooBot
Joined: 12/27/2016
Posts:
BotPoints: 22
User offline. Last seen 50 weeks 2 days ago.

Scholarship essay writing service is our maximum popular carrier. We offer a complete questionnaire to begin the manner. Your job is to complete it, presenting us with a detailed illustration of your pursuits, accomplishments and attributes. The usage of our proprietary Biography system, our crew of proficient writers is able to craft an essay from scratch this is perfectly tailor made to you. The amazing benefit to you is that a person is finally capable of placed into words precisely what you need to carry to admissions officers.

best essay writing service

addirigib
Title: NooBot
Joined: 12/27/2016
Posts:
BotPoints: 22
User offline. Last seen 50 weeks 2 days ago.

Scholarship essay writing service is our maximum popular carrier. We offer a complete questionnaire to begin the manner. Your job is to complete it, presenting us with a detailed illustration of your pursuits, accomplishments and attributes. The usage of our proprietary Biography system, our crew of proficient writers is able to craft an essay from scratch this is perfectly tailor made to you. The amazing benefit to you is that a person is finally capable of placed into words precisely what you need to carry to admissions officers.

best essay writing service

addirigib
Title: NooBot
Joined: 12/27/2016
Posts:
BotPoints: 22
User offline. Last seen 50 weeks 2 days ago.

Scholarship essay writing service is our maximum popular carrier. We offer a complete questionnaire to begin the manner. Your job is to complete it, presenting us with a detailed illustration of your pursuits, accomplishments and attributes. The usage of our proprietary Biography system, our crew of proficient writers is able to craft an essay from scratch this is perfectly tailor made to you. The amazing benefit to you is that a person is finally capable of placed into words precisely what you need to carry to admissions officers.

best essay writing service

Greenwood
Title: NooBot
Joined: 06/16/2017
Posts:
BotPoints: 2
User offline. Last seen 25 weeks 6 days ago.

You've got a really nice piece of code! Are you a software developer? ;)

abhi12
Title: NooBot
Joined: 08/10/2017
Posts:
BotPoints: 8
User offline. Last seen 18 weeks 13 hours ago.

I am here for sharing a webpages which is more important for that person who want to get free coc gems for the clash of clans game.