View unanswered posts | View active topics It is currently Sun Sep 27, 2020 11:03 pm

Reply to topic  [ 3 posts ] 
Author Message

Joined: Sun Jul 20, 2014 10:23 pm
Posts: 1
hey guys!
i recently started programming for ROBOTC VEX CORTEX and it is fairly easy...

i was concerned when i came to work with the line followers, i realized that you have to keep the bot plugged in to your computer to "debug" the values you get on the sensor and then divide and do the math to calculate the threshold..

but i was wondering to use those values as a variable in your code...
for example, would it be possible to get the value from the sensor and store as a variable in the code..

iid appreciate any sort of help!

Mon Jul 21, 2014 12:51 pm

Joined: Wed Jul 30, 2014 9:18 am
Posts: 5
Post Re: DEBUGGING help
I think what you want to do is this:

int variable;



Last edited by denrya on Wed Jul 30, 2014 6:08 pm, edited 1 time in total.

Wed Jul 30, 2014 9:54 am
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post Re: DEBUGGING help
This topic is discussed in detail in the VEX Cortex Video Trainer using ROBOTC, under the 'Sensing -> Line Tracking' section. Take a look through the videos and documents in that section, try to tackle one of the challenges, and let us know how it goes!

Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Wed Jul 30, 2014 10:27 am
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.