Go to Post You dont get paid based on your IQ, or how many things you have memorized, or what you can invent on your feet. You get paid for results. - KenWittlief [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-02-2004, 19:02
2Crisis's Avatar
2Crisis 2Crisis is offline
Blaarg
AKA: Dave L
#1343
Team Role: Webmaster
 
Join Date: Jan 2004
Location: Phoenix, Az
Posts: 7
2Crisis is an unknown quantity at this point
Send a message via AIM to 2Crisis
Question Banner Sensor Programming Problem

I am having some trouble with the Banner Sensors (for detecting the white reflective line). We have the Banner Sensors wired up as I have read here in the forums (white OR black for Data on RC, blue for ground, brown for +). We currently have 2 Sensors: Sensor #1 is plugged into RC Digital IO port 1, and Sensor #2 is plugged into RC Digital IO port 18 (we have to use port 1 and 18 because our pin-wire connector is too fat on one side). When we power on the robot (and neither banner sensor detects anything), rc_dig_in01 broadcasts 257, and rc_dig_in18 broadcasts 0. If Sensor #1 detects something, rc_dig_in01 accordingly broadcasts 1. However, if Sensor #2 detects something, instead of changing rc_dig_in18 to 1, it changes rc_dig_in01 to 256, and rc_dig_in18 stays at 0. rc_dig_in18 is ALWAYS broadcasting zero! If both sensors detect something, then rc_dig_in01 broadcasts 0. I'm fairly certain this is a programming problem, but I am lost. I have 'rc_dig_in18 = INPUT' set in the User_Initialization() function, but can rc_dig_in18 not be programmed for Input? In the default_routine, it reads

relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */

So, what's going on? Can rc_dig_in18 only be used for some kind of pressure switch? I'm lost.
 


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
Victor problem Andy Baker Electrical 15 24-06-2003 09:49
Ok one problem cantwell03 Programming 3 13-02-2003 07:28
The problem with scouting... archiver 2001 10 23-06-2002 23:49
joystick problem archiver 2000 12 23-06-2002 23:08
Major problem with chipphua motors aka Scott White Motors 18 19-03-2002 19:44


All times are GMT -5. The time now is 04:20.

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