View unanswered posts | View active topics It is currently Wed Dec 11, 2019 9:38 pm






Reply to topic  [ 2 posts ] 
how to use diffrent mode of color sensor in a while ()loop ? 
Author Message
Rookie

Joined: Sun Jan 25, 2015 11:04 am
Posts: 1
Post how to use diffrent mode of color sensor in a while ()loop ?
my situation is showed on youtube :
https://www.youtube.com/watch?v=eATF9X7JYyg

I found corlor sensor can be used like that .color-red to follow green line then use color-RGB mode to stop at the black line. can anybody tell me how to code it by Robotc. thx :)

and can I use robotc to program nxt color sensor like that?

leon 2015/2/10


Mon Feb 09, 2015 8:37 pm
Profile
Rookie

Joined: Thu Apr 02, 2015 6:16 pm
Posts: 12
Post Re: how to use diffrent mode of color sensor in a while ()lo
I had to use this too!
You must use a command to change the mode of the sensor:
setSensorMode(mysensor, 1 to 6);

the number (1 to 6) is the mode. You have rgb modes, blue and red modes and no light mode.

But i can't find a green mode... And i have to use this mode in the program. Anyone knows how to turn it green?


Fri May 01, 2015 2:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.