View unanswered posts | View active topics It is currently Sat Nov 01, 2014 7:59 am






Reply to topic  [ 3 posts ] 
DEBUGGING help 
Author Message
Rookie

Joined: Sun Jul 20, 2014 10:23 pm
Posts: 1
Post DEBUGGING help
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!
thankyou


Mon Jul 21, 2014 12:51 pm
Profile
Rookie

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;

variable=SensorValue[sonar];

variable=whatever;


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



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

Joined: Thu May 24, 2012 12:15 pm
Posts: 598
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 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


Wed Jul 30, 2014 10:27 am
Profile
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.