View unanswered posts | View active topics It is currently Sun Dec 21, 2014 5:42 am






Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Counter For Robotc 
Author Message
Rookie

Joined: Thu Dec 11, 2008 9:31 am
Posts: 14
Post Re: Counter For Robotc
okay i got ride of that program cause it didn't do what it was supposed to and i made it alot siamler like the one at the top and it actually works

#pragma config(Sensor, S1, lightsensor, sensorLightActive)


task main()
{

{
motor[motorA] = 75;
motor[motorB] = 75;
wait1Msec(4000);
{
int counter1 = 0;
while(SensorValue(lightsensor) < 45)

counter1 = counter1 + 1;

}
}
}
posting.php?mode=reply&f=1&t=1026#
:programmer:


Mon Dec 22, 2008 11:31 am
Profile
Rookie

Joined: Thu Dec 11, 2008 9:31 am
Posts: 14
Post Re: Counter For Robotc
still dont how to display counter


Tue Dec 23, 2008 9:14 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page Previous  1, 2

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.