Go to Post For FIRST robots, the phenomena listed above just do not apply. - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-11-2012, 11:30
Kazroid Kazroid is offline
hopeless promgrammer
AKA: Brian Kasner
FTC #5264 (ILITE Blue Chips)
Team Role: Programmer
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Haymarket
Posts: 3
Kazroid is an unknown quantity at this point
Programming ordeal

Hello fellow FTCers.

My name is Brian, new to FTC, this site, and robotics and general.

My team is 5264, ILITE Blue Chips, from Haymarket.

I am one of our team's programmers, and I have a slight problem, and was hoping someone could help.

How do i set a light sensor to activate a LED light? For example, let's say I have a ligth sensor and 2 LED lights, one red, the other blue. When the sensor picks up anything >20, I want the red light to shine. then the sensor reads <20, I want the blue sensor to go off.
How could I program this in ROBOTC?

(Note: this isn't the exact scenario I'm in, but it's very similar)
__________________
Simply The Greatest
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi