POE RobotC Errors (Help)
Page 1 of 1

Author:  dhonePOE3 [ Thu May 10, 2012 11:12 am ]
Post subject:  POE RobotC Errors (Help)

How do we program two light sensors to both work at the same time?

We used the following line of code to get both light sensors working at the same time, but one has to be set off first and then the other one needs to be set of in order to work:
untilDark(350, lightSensor); untilDark(220, lightSensor2);

Please help, as our grade depends on it. ASAP

Author:  mattallen37 [ Thu May 10, 2012 11:28 am ]
Post subject:  Re: POE RobotC Errors (Help)

You want it to only continue once both light sensors are dark? Normally you could do that with something like this (excuse the lack of ROBOTC specifics):
until((Sensor(1)<350) && (Sensor(2)<220));
Can you provide your code?

Author:  NeXT-Generation [ Thu May 10, 2012 11:29 am ]
Post subject:  Re: POE RobotC Errors (Help)

First of all, shouldn't this be in the programming forum? Second of all, we needs moar info! What platform are you using? What's your entire code? How is your robot configured? The better you explain your problem, the better the help you'll get.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group