View unanswered posts | View active topics It is currently Tue Sep 02, 2014 7:37 am






Reply to topic  [ 2 posts ] 
line tracking/sensing help please? 
Author Message
Rookie

Joined: Fri Nov 16, 2012 2:23 pm
Posts: 5
Post line tracking/sensing help please?
My program is acting up it wont let me compile and download. It says there are problems and the weird red X's keep popping up on the screen next to only two parts of my program!! Can anyone tell me how to fix the problem?


Attachments:
File comment: my program for line tracking and the touch sensor
sensing_dejuan.c [3.73 KiB]
Downloaded 137 times
Mon Nov 19, 2012 1:50 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 566
Post Re: line tracking/sensing help please?
I'm guessing the errors you are seeing are as follows?

**Error**:Undefined variable 'motorB'. 'short' assumed.
**Error**:Undefined variable 'motorC'. 'short' assumed.

If so, you need to check your Platform Type (from the Robot menu) and make sure it is set to LEGO Mindstorms NXT. If the platform type is set to IFI/VEX or Arduino, any NXT-specific commands (such as the motorB and motorC commands) will generate errors. If these are not the errors you are seeing, please post the ones that are being generated for you as well as which lines they are appearing on and we will be able to help debug the program more thoroughly.

You may also want to go through our video trainer curriculum as it covers the core coding principles and can help you debug any other errors you might run into. Plus, it's a great way to learn ROBOTC top to bottom: http://www.education.rec.ri.cmu.edu/pre ... index.html

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Mon Nov 19, 2012 2:00 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

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.