View unanswered posts | View active topics It is currently Tue Sep 23, 2014 12:41 pm






Reply to topic  [ 3 posts ] 
Missing functions? 
Author Message
Rookie

Joined: Thu Nov 29, 2012 11:51 pm
Posts: 4
Location: San Diego, CA
Post Missing functions?
Hi, New to RobotC but not new to C programming.

I found an article on the web from Xander about I2C and RobotC.

I did a search in the help files and on line for SetSensorType(), there is no reference. When you type in Robotc, autocompletion feature brings up the SetSensorType() function.

I also did a search for TSensorTypes, there is a link under the NXT Sensor functions. (TSensorTypes) but there is no reference to what the different SensorTypes are?

Is the documentation incomplete? Where can I find references to these and other undocumented topics?

Thanks

Joe

_________________
Old C Programmers never die, they just get a new function pointer!


Fri Nov 30, 2012 10:46 pm
Profile WWW
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 578
Post Re: Missing functions?
The SetSensorType() command is used to manually set the mode of a specific input port to a specific type of sensor. There are a few instances (sensor calibration, for example) where this command is used to activate/deactive a sensor in the middle of a program, but generally we recommend using the Motors and Sensors Setup to configure the robot's sensors (found under the 'Robot' menu in ROBOTC).

The SensorType command works very similarly, and again is used only in very specific instances; again, unless it's absolutely needed, it's best to configure the robot using the Motors and Sensors setup window instead.

Brief SensorType command description (for the Arduino platform): http://www.robotc.net/wiki/ARDUINO_328_ ... SensorType

_________________
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 Dec 03, 2012 1:44 pm
Profile
Rookie

Joined: Thu Nov 29, 2012 11:51 pm
Posts: 4
Location: San Diego, CA
Post Re: Missing functions?
Thanks again John,

Joe

_________________
Old C Programmers never die, they just get a new function pointer!


Wed Dec 05, 2012 10:16 pm
Profile WWW
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.