
Re: RobotC commands/syntax
If you use the "Motors and Sensors Setup" command on the "Robot" sub-menu it will automatically generate the appropriate code to setup sensors for you. What it generates are a bunch of "#pragma" statements as the first line of your program. Then the compiler recognizes these pragmas -- which define the characteristics of the motors and sensors and automatically generates the code for them as part of the "prolog" code that is run at the start of your program.
"SetSensorType" sets up a sensor. This tells the NXT firmware which device driver it needs to run for a particular sensor port. It's a function that is the same as doing an assignment to "SensorType" variable.
"SensorQuaDEncoder" and "SensorFullCount" are unique variables for the VEX / IFI version of ROBOTC. They should be invisible in the NXT / FTC version.
If you really want to set up the sensors manually in your code you can. You should be able to find a few examples in the sample program folder.
If you want to see the code that is generated in the prolog code you can also see that. You may have to be in "Expert" Menu Level mode. Use the "F9" key to get a dis-assembly listing of your program. Look for the assembler code for the main task.