Go to Post "its not working because you didnt program it right" *wheel falls off* "never mind" - Nin_estarSaerah [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 11-02-2008, 15:17
arhajder's Avatar
arhajder arhajder is offline
Arkadiusz Hajder
FRC #0640 (Viro)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Thomas A. Edison
Posts: 60
arhajder will become famous soon enougharhajder will become famous soon enough
Send a message via AIM to arhajder
Exclamation Programming a third port

Hello my team wants to program the third port.What we did was change everything that said port1 or port2 and put in port3. we got a failled build that said
SPBRG3 AND TXSTA3bits is not defined.

How can we fix this problem?all are welcome(KEVIN!lol)
  #2   Spotlight this post!  
Unread 11-02-2008, 15:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming a third port

What third port?

(There are only two serial ports available: the program port and the TTL port.)
  #3   Spotlight this post!  
Unread 11-02-2008, 16:10
arhajder's Avatar
arhajder arhajder is offline
Arkadiusz Hajder
FRC #0640 (Viro)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Thomas A. Edison
Posts: 60
arhajder will become famous soon enougharhajder will become famous soon enough
Send a message via AIM to arhajder
Re: Programming a third port

if u look on the IO there are four ports. we configuered our controller so that when we press a switch it activates a motor. we want to program that port so we can use it.
  #4   Spotlight this post!  
Unread 11-02-2008, 16:38
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming a third port

Again I ask, "what third port?" What are you looking at that shows four of them? Again I tell you that there are only two serial ports available.

Now I ask why a serial port has anything to do with using a switch to control a motor.

A motor usually connects to a Victor speed controller, which sets its output based on signals from one of sixteen pwm outputs on the Robot Controller. Some motors can be connected instead to a Spike relay module, which sets its output based on signals from one of eight relay outputs on the Robot Controller. Switches are typically connected directly to one of eighteen digital inputs on the Robot Controller.
  #5   Spotlight this post!  
Unread 11-02-2008, 16:52
IndySam's Avatar
IndySam IndySam is online now
Registered User
FRC #0829 (Digital Goats)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Indy
Posts: 3,357
IndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond repute
Re: Programming a third port

Quote:
Originally Posted by Alan Anderson View Post
Again I ask, "what third port?" What are you looking at that shows four of them? Again I tell you that there are only two serial ports available.

Now I ask why a serial port has anything to do with using a switch to control a motor.

A motor usually connects to a Victor speed controller, which sets its output based on signals from one of sixteen pwm outputs on the Robot Controller. Some motors can be connected instead to a Spike relay module, which sets its output based on signals from one of eight relay outputs on the Robot Controller. Switches are typically connected directly to one of eighteen digital inputs on the Robot Controller.
Maybe he means joystick ports.
__________________
"Champions are champions not because they do anything extraordinary but because they do the ordinary things better than anyone else." —Chuck Knoll


2015 Indianapolis District Winner
2014 Boilermaker Regional Industrial Design Award
2013 Smoky Mountain Regional Industrial Design Award
2012 Boilermaker Engineering Excellence Award
2010 Boilermaker Rockwell Innovation in Control Award.
2009 Buckeye J&J Gracious Professionalism Award
2009 Boilermaker J&J Gracious Professionalism Award
2008 Boilermaker J&J Gracious Professionalism Award
2007 St Louis Regional Winners
  #6   Spotlight this post!  
Unread 11-02-2008, 19:40
arhajder's Avatar
arhajder arhajder is offline
Arkadiusz Hajder
FRC #0640 (Viro)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Thomas A. Edison
Posts: 60
arhajder will become famous soon enougharhajder will become famous soon enough
Send a message via AIM to arhajder
Re: Programming a third port

yes the joystick ports! We are using two joysticks that are connected into port 1 and port 2 on the operator interface. Then there are two extra ports(3 and 4). We created a controller that uses the third port. How would you program the third port!
  #7   Spotlight this post!  
Unread 11-02-2008, 19:42
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Programming a third port

The third port should be exactly the same as the others. Simply replace the p1 or p2 prefix with p3. There shouldn't be any other changes.
  #8   Spotlight this post!  
Unread 11-02-2008, 19:42
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Programming a third port

the "aliases" for the third stick are p3_x, p3_y, and so on
  #9   Spotlight this post!  
Unread 11-02-2008, 19:47
arhajder's Avatar
arhajder arhajder is offline
Arkadiusz Hajder
FRC #0640 (Viro)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Thomas A. Edison
Posts: 60
arhajder will become famous soon enougharhajder will become famous soon enough
Send a message via AIM to arhajder
Re: Programming a third port

which source or header file would i input my data. I cant seem to find it anywhere
  #10   Spotlight this post!  
Unread 11-02-2008, 19:48
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Programming a third port

All of the aliases are defined in the same header as the first two ports, that is, ifi_frc.h.
  #11   Spotlight this post!  
Unread 11-02-2008, 19:51
arhajder's Avatar
arhajder arhajder is offline
Arkadiusz Hajder
FRC #0640 (Viro)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Thomas A. Edison
Posts: 60
arhajder will become famous soon enougharhajder will become famous soon enough
Send a message via AIM to arhajder
Re: Programming a third port

but where would i write

ex.if(p3_sw_trig)
pwm03=254;
else
pwm01=127
  #12   Spotlight this post!  
Unread 11-02-2008, 19:54
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Programming a third port

That should be in user_routines.c, like the other code.
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
Serial Port Programming phrontist General Forum 1 07-02-2004 16:13
Programming Port I/O MikeDubreuil Programming 4 10-02-2003 17:07
Programming Port Steven Carmain Programming 18 23-01-2003 21:36
Programming port input? Rickertsen2 Rumor Mill 1 21-01-2003 17:26
Programming Port GreenDice Programming 12 10-01-2002 09:14


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

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