Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   ROBOTC - Controller (http://www.chiefdelphi.com/forums/showthread.php?t=62784)

ShawnHanna 29-01-2008 14:30

ROBOTC - Controller
 
Hey, I am trying to use robotc for programming our robot, but I don't know which analog/digital ports are.

Does anyone know what they are???

timville 30-01-2008 20:20

Re: ROBOTC - Controller
 
Hi there

The Analog Ports can be access using the statements:
SensorValue[in1]-SensorValue[in16]

The Digital Ports can be access using the statements:
SensorValue[dgtl1]-SensorValue[dgtl18]

You can configure specific ports for different sensor types, or configure digital sensors to be inputs or outputs by using the Motors and Sensors Setup screen... You can find this in ROBOTC under the "Robot - Motors and Sensor Setup" menu.


All times are GMT -5. The time now is 23:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi