View Single Post
  #2   Spotlight this post!  
Unread 30-01-2008, 20:20
timville's Avatar
timville timville is offline
Registered User
AKA: Timothy Friez
FRC #1185 (X-Bots)
Team Role: Alumni
 
Join Date: Mar 2007
Rookie Year: 2003
Location: Pittsburgh
Posts: 18
timville is an unknown quantity at this point
Send a message via AIM to timville
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.
__________________
2003 - Rookie All-Stars Awards - #1185 (Pittsburgh)
2004-2008 FIRST Volunteer - Ref/Head Ref (Pittsburgh)
2002-2007 FIRST Lego League Volunteer - Head Ref (Pittsburgh)