Go to Post Tell them your newfound passion for FIRST as a program, and let them know all you're doing is getting more involved to broaden your FIRST horizon - Dorienne [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 23-01-2007, 21:41
Necrogigas's Avatar
Necrogigas Necrogigas is offline
Team Baby Killer
AKA: 10|2|) 0pH 7|-|3 /\/37
FRC #2085 (VHS Robotics)
Team Role: Webmaster
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Vacaville, CA
Posts: 6
Necrogigas is an unknown quantity at this point
I/O

I've been assigned to I/O Programming and I have no idea where to begin. I can't find any kind of documentation or sample code. Can anyone point me in the right direction?
__________________

Go Bulldogs!!!
  #2   Spotlight this post!  
Unread 23-01-2007, 21:42
Stuart's Avatar
Stuart Stuart is offline
#include coffee.h
FRC #1745 (P51- Mustangs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Dallas, TX
Posts: 414
Stuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond repute
Send a message via AIM to Stuart
Re: I/O

define I/O programing? do you mean RC I/O or UI I/O?
__________________
Proud mentor of Team #1745 the P-51 Mustangs

If at first it doesn't work, use a hammer.
If that doesn't work, use a bigger hammer.
  #3   Spotlight this post!  
Unread 23-01-2007, 21:54
Necrogigas's Avatar
Necrogigas Necrogigas is offline
Team Baby Killer
AKA: 10|2|) 0pH 7|-|3 /\/37
FRC #2085 (VHS Robotics)
Team Role: Webmaster
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Vacaville, CA
Posts: 6
Necrogigas is an unknown quantity at this point
Re: I/O

Hell if I know. My team's programming mentor came in for five minutes and gave assignments to the programming team and left. All he told me was to do I/O.
__________________

Go Bulldogs!!!

Last edited by Necrogigas : 23-01-2007 at 21:57.
  #4   Spotlight this post!  
Unread 23-01-2007, 21:57
Stuart's Avatar
Stuart Stuart is offline
#include coffee.h
FRC #1745 (P51- Mustangs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Dallas, TX
Posts: 414
Stuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond repute
Send a message via AIM to Stuart
Re: I/O

well reguardless youll be dealing with lots of ifs

if (dig_in_1 == 1) dothis();


what I would do is write down what you want to control and how you want to control it.
if you could PM me some more specifics I could walk you through the steps and give you some sample code
__________________
Proud mentor of Team #1745 the P-51 Mustangs

If at first it doesn't work, use a hammer.
If that doesn't work, use a bigger hammer.
  #5   Spotlight this post!  
Unread 23-01-2007, 22:00
Necrogigas's Avatar
Necrogigas Necrogigas is offline
Team Baby Killer
AKA: 10|2|) 0pH 7|-|3 /\/37
FRC #2085 (VHS Robotics)
Team Role: Webmaster
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Vacaville, CA
Posts: 6
Necrogigas is an unknown quantity at this point
Re: I/O

I already have that. The problem is that I don't know any of the syntax or how to do anything in MPLAB. God I wish I could us Dev for the programming.
__________________

Go Bulldogs!!!

Last edited by Necrogigas : 23-01-2007 at 22:17.
  #6   Spotlight this post!  
Unread 23-01-2007, 22:09
Stuart's Avatar
Stuart Stuart is offline
#include coffee.h
FRC #1745 (P51- Mustangs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Dallas, TX
Posts: 414
Stuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond repute
Send a message via AIM to Stuart
Re: I/O

http://www.faqs.org/docs/learnc/

skim over that but fully read the flow control section and the function section.
__________________
Proud mentor of Team #1745 the P-51 Mustangs

If at first it doesn't work, use a hammer.
If that doesn't work, use a bigger hammer.
  #7   Spotlight this post!  
Unread 23-01-2007, 22:17
Necrogigas's Avatar
Necrogigas Necrogigas is offline
Team Baby Killer
AKA: 10|2|) 0pH 7|-|3 /\/37
FRC #2085 (VHS Robotics)
Team Role: Webmaster
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Vacaville, CA
Posts: 6
Necrogigas is an unknown quantity at this point
Re: I/O

thanks
__________________

Go Bulldogs!!!
  #8   Spotlight this post!  
Unread 23-01-2007, 22:34
Jimmy Cao Jimmy Cao is offline
Registered User
AKA: Jimmy Cao
no team
 
Join Date: Sep 2006
Rookie Year: 2004
Location: San Francisco, CA
Posts: 295
Jimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant future
Re: I/O

Just for the record:

Which IDE you program in has little effect on the required syntax (presuming they are all ANSI standard). Any knowledge in Dev can be applied to MPLAB, i believe.
__________________
Jimmy Cao

Team 469 2006-2010 Student/Alumni
Team 830 2011-2012 Mentor
  #9   Spotlight this post!  
Unread 24-01-2007, 08:26
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
Re: I/O

I/O ( intput / output )

The connections to the real world.

Digital input - on / off signals to the robot controller ( is the switch open or closed )

Digital output - on / off signals from the robot controller

Analog input - signal can vary between 0 and 5 VDC. Controller converts to a numerical value 0 - 4096.

Smart I/O - serial port connection to the camera - bidirectional communcation with another controller.

PWM output - pulse width modulated signal used to control the drive motors and servo motors.

Spike output - high current digital output

So where do you start, go talk with the groups responsible for the drive train and the other mechanisms for your robot. How many motors do they plan on using? Are air cylinders or other pnuematic components going to be used? How will end of travel conditions be detected? (if they don't know, then you need to get them to design in the required sensors (limit swiches, etc.) )What other sensors are needed? It is much easier to design in the required sensors upfront than to kludge them on at the end. Make a comprehensive list and determine if there are enough of each type of i/o; then make i/o assignments. Publish a document so all other programmers and the electrical wiring team know what connects to what.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
  #10   Spotlight this post!  
Unread 24-01-2007, 12:19
Necrogigas's Avatar
Necrogigas Necrogigas is offline
Team Baby Killer
AKA: 10|2|) 0pH 7|-|3 /\/37
FRC #2085 (VHS Robotics)
Team Role: Webmaster
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Vacaville, CA
Posts: 6
Necrogigas is an unknown quantity at this point
Re: I/O

Our control system as we envision it.

Joystick #1 - controls the left drive motor
Joystick #2 - controls the right drive motor
3 buttons - preset heights for the lifting arm
=========*Ground
=========*Middle Rack
=========*Top Rack
Switch - open/close clamp via pneumatics system
Lever - controls angle of lifting arm via penchiameter (I know I misspelled it horridly)
Big Red Button - unfolds platform and opens ramp
__________________

Go Bulldogs!!!

Last edited by Necrogigas : 24-01-2007 at 20:50.
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


All times are GMT -5. The time now is 10:43.

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