I was doing the sensors obstacle course and have created a program for doing so, however, the course says that What I have done is incomplete, I don't understand why. I have checked in results in the Solution Video and my robot has done almost the exact same thing. Here is my program:task main(){ while(SensorValue(touch)==0){ motor[paco]=50; motor[shift]=50;} motor[paco]=-50; motor[shift]=-50; wait1Msec(400); int goal=SensorValue(gyro)-890;

while(SensorValue(gyro)>goal){ motor[paco]=-25; motor[shift]=25;} motor[paco]=40; motor[shift]=40; wait1Msec(3000); ClearTimer(T1);while(time100[T1]<240){if(SensorValue(light)>63){ motor[shift]=30; motor[paco]=15;} else{motor[paco]=30; motor[shift]=15; }} while(SensorValue(sonar)>35){ motor[paco]=50; motor[shift]=50;} goal=SensorValue(gyro)+900; while(SensorValue(gyro)<goal){ motor[paco]=25; motor[shift]=-25;} while(SensorValue(sonar)>23){ motor[paco]=50; motor[shift]=50;} goal=SensorValue(gyro)+900; while(SensorValue(gyro)<goal){ motor[paco]=25; motor[shift]=-25; wait1Msec(50); goal-=4;} while(true){ motor[paco]=50; motor[shift]=50;}}I named the left motor paco and the right shift. On the curriculum, it says that I had not touched the box nor reversed from it as well. What do I need to change to make it work?

Fri Jun 20, 2014 7:18 pm

JohnWatson

Site Admin

Joined: Thu May 24, 2012 12:15 pmPosts: 663

Re: RVW Curriculum

We were able to replicate this issue and can confirm that it is currently a bug in ROBOTC. Our development team is looking into exactly why this issue is occurring and we hope to have a fix out soon. We will post an update on here as soon as the fix is available. Thank you for making us aware of this issue!

Who is online

Users browsing this forum: No registered users and 2 guests

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