Go to Post Its not how much knowledge you have, its how much you want to learn. - tennispro9911 [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 18-01-2002, 02:23
BinaryBob0001 BinaryBob0001 is offline
Registered User
#0973
 
Join Date: Jan 2002
Location: Atascadero
Posts: 5
BinaryBob0001 is an unknown quantity at this point
Question Pbasic I/O with the OI

I'm trying to figure out how all the inputs and outputs are transferred into the control unit for the robot. Are they all stored in the pre-defined variables? And is there a way to change the pre-defined variables? Thanks for the help.
  #2   Spotlight this post!  
Unread 18-01-2002, 07:40
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
The values are read in from the various sources in either of two ways.

The two-terminal resistance of the joysticks, the "wheels" and the auxiliaries with a tricky "discharge a capacitor and count how long it takes to get back to a threshold voltage" charge-timing circuit A la IBM game port {see also Apple ][ and later}; the digital inputs just feed into a shift register and are clocked in.

The Innovation First program just sucks it all in, and blows it all out in a programmed order which avoids having two successive bytes of 255 (see the PBasic argument thread). The RC input program takes the bytes in, in the same preprogrammed order, and then passes the user-selected (CON = 1) bytes to the Stamp, in the order ordained in the SERIN statement.

Can you mess with it ? no. Should you mess with it ? NO! It is because it is so "out-of-your-hands" that you may have such wide latitude in your choice of input controls. Nothing can go wrong.*

* explanation
refers to a joke from the age of Dinosaurs: the airplane PA system comes on: "Good Afternoon, Ladies and Gentlemen. This is a recording (on a disk with grooves - pre Jurassic). This airplane has no pilot. Through the Wonders of Modern Science, a computer will fly this airplane from takeoff to landing. Nothing can go wrong ..putt! (as the needle ships back a groove).. Nothing can go wrong ..putt..!"
  #3   Spotlight this post!  
Unread 17-02-2002, 00:16
GhettoTech GhettoTech is offline
Registered User
#0300 (Ghetto Techs)
 
Join Date: Feb 2002
Location: Philadelphia
Posts: 21
GhettoTech is an unknown quantity at this point
Send a message via AIM to GhettoTech
Quote:
Can you mess with it ? no. Should you mess with it ? NO! It is because it is so "out-of-your-hands" that you may have such wide latitude in your choice of input controls. Nothing can go wrong.*
You can mess with the input and output variables
And if you learn what you're doing, then yeah you should mess with it.

Quote:
I'm trying to figure out how all the inputs and outputs are transferred into the control unit for the robot. Are they all stored in the pre-defined variables? And is there a way to change the pre-defined variables? Thanks for the help.
The default code explains what each varable is used for when it is declared in the program. The SERIN command at the begining of the program's "MainLoop:" is what takes the information from the OI and stores the information in each of the variables. The program runs and does what it does with each variable. Then, the SEROUT command at the end of the program's "MainLoop:" sends the appropriate signals to the appropriate outputs on the RC.
If you'd like more help with any specific inputs or outputs, feel free to AOL IM me (SilverSonic105) or e-mail me (Ghetto@techie.com).
  #4   Spotlight this post!  
Unread 17-02-2002, 00:19
GhettoTech GhettoTech is offline
Registered User
#0300 (Ghetto Techs)
 
Join Date: Feb 2002
Location: Philadelphia
Posts: 21
GhettoTech is an unknown quantity at this point
Send a message via AIM to GhettoTech
Quote:
And if you learn what you're doing, then yeah you should mess with it.
I ment to say "if you want to" at the end. The Innovation FIRST control system and default code is very well designed and will work perfectly well without much tampering
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
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
Actual execution time measurement Dan Technical Discussion 5 24-03-2003 11:36
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 09-02-2003 22:06
emulationFIRST (aka PBasic emulator) Matt Leese Programming 5 30-06-2002 12:06
PBASIC Loop Speed? archiver 2001 3 23-06-2002 23:46


All times are GMT -5. The time now is 01:15.

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