My team has been using RobotC to program this season and it has worked very well. But when i tried to put an encoder in, it started messing with things. Now we can't run programs. As soon as you click "Teleop Ready", the screen reads:PgmCnt: 0000F2Type: 2

And it has a loading sign underneath. It is very frustrating. We would be using Labview at this point except our NXT brick is rejecting anything Labview I'll put the code beneath, and thanks in advance to everyone.

Renee,I put the fix in, so the pragma for that reads:#pragma config(Motor, mtr_S1_C3_1, arm1, tmotorNormal, openLoop, encoder)I tried running it and got the same error. One of my more experienced counterparts told me that although he doesn't know what it means, the hexadecimal code it was displaying, 0000F2, is a light shade of blue.

Sat Apr 02, 2011 4:57 pm

SSI

Rookie

Joined: Mon Feb 23, 2009 12:40 pmPosts: 27

Re: Run error?

Ok, we looked a little closer. Your pragma lines have conflicts. The first line states that you have a motor, motor, motor, servo (in that order). However, your motor designation for the arm lists it is on sensor port 1 controller 4, but the first line says controller 4 is a servo.

Clean up the pragmas and it should work.

Renee

By the way, what team number are you?We are team 2843.

Sat Apr 02, 2011 5:21 pm

rperera

Rookie

Joined: Sat Apr 02, 2011 3:15 pmPosts: 6

Re: Run error?

Thanks Renee. I guess the RobotC Beta can miss things; I manually redid the pragmas and that solved the problem. Everything runs perfect now.We are FTC 4509 (FLAME).

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