Go to Post We try to do cool stuff (note: I didn't say it always works). - marshall [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2008, 14:30
ShawnHanna's Avatar
ShawnHanna ShawnHanna is offline
Programmer
FRC #2051
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Allison Park
Posts: 4
ShawnHanna is an unknown quantity at this point
Send a message via AIM to ShawnHanna
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???
  #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)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free ROBOTC for all 2008 FIRST Robotics Teams! Brandon Martus Announcements 12 01-02-2008 11:22
Setting up an analog input in RobotC for IFI. NSolarz Programming 2 30-01-2008 20:23
FRC Robot Controller/Speed Controller RoarRoar Control System 3 17-01-2008 10:41
Free ROBOTC for all 2008 FIRST Robotics Teams! timville Programming 0 09-01-2008 10:27
Congrats to the Robotc Knights! MattB703 Thanks and/or Congrats 0 18-03-2002 15:07


All times are GMT -5. The time now is 19:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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