Go to Post Elevator speeches too - everyone should have one. - Swan217 [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
  #17   Spotlight this post!  
Unread 25-02-2002, 06:57
Joseph F Joseph F is offline
Registered User
#0506 (Steel Friars)
 
Join Date: Jan 2002
Location: New York
Posts: 59
Joseph F is an unknown quantity at this point
Send a message via AIM to Joseph F
Quote:
Have your Electronics teacher check your work. If HE (or SHE) can't tell a good from a bad soldering joint, you've got OTHER problems at your school...
electronics teacher? I wish we had one of those! A tech teacher would be nice to... maybe even a shop class. Closest we have is physics classes.

Quote:
What I'm talking protecting against in a program are LOGICAL errors. For example, if a timer variable is not checked correctly, it wraps around (overflow/underflow) forever and therefore never switches things to the next state.
That is something I took into concideration. I posted my program earlier in the thread if you care to look at it. Notice it uses a word, but doesn't even pass 1000. When the counter starts running once it passes 900 (i think thats what i have it at currently) the compressor turns on and as long as the compressor is on it resets the value to 910 every time it goes through the program. That way if for some odd reason the timer jumped unless it jumped above 65536 from below 900 everything should run fine.

Quote:
You'd have to break the chassis apart (or go at it with diagonal cutters in the cranny of some L-channel from the INSIDE of the robot) to get at some of our wiring
Given the shape of our robot our wires aren't as protected as we would like. Most of them are fairly safe and would take quite a stretch to get at, but a few (like the one for the airtanks) are a bit closer to danger than we would like. If we are underweight we may add some sort of protection at the competition.

Quote:
What turns it off? Only time, or does it go back across the high pressure setting then run the clock again? BTW, watch out for the logical possibility of the pump trying to switch on from your override, then off because the high pressure switch has not responded yet due to lags and thinks it is still "at pressure now", then back on again once the pressure switch responds a fraction of a second later
It's turned off when the pressure switch is tripped, however unless I fire the pneumatics a second time it wont turn on again until the timer triggers it. The timer turns the pump on. The pressure switch turns it off. So at worst it should go on, then off right away and stay in the off state for a short period of time. Also in your previous post... Didn't cases 1 and 3 have this on, off, on problem? The "oscillating" around either the high or low switch.

Quote:
If we're allowed to do it NOW (are we?),
I didn't mean have a switch wired up ready to be tossed on. I meant set up the switch controls in a copy of the program I have saved so that i'll know exactly what I need to do when at the competition.


Quote:
You've used up ALL FOUR PORTS??? WOW! You must be controlling an OCTOPUS
What I meant was we've used up all the switches we currently have, and soldering wires in the pit is not something i'm looking forward to. We used the joysticks on ports 1 and 3. The tank drive takes away some of port 2's controls and our port 4 controls also take over the aux on port 1. We could add stuff to port 2 if we really needed... It just doesn't seem quite neccessary yet.

Quote:
As I said, the program is already written for you in Team Update #5. It is only a TWO LINE program! (Plus a couple of aliases...) Just drop it in now, assign the right input bits for it, and comment it out for the time being so it's ready to roll if other things don't work out.
Good tip. I'll be sure to do that.
__________________
One Team, One Bot, One Fleet of Ambulances!
 


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
Why can't you use 255 in PWM? Andrew Technical Discussion 4 29-05-2003 14:50
variable? manodrum Programming 11 01-04-2003 17:20
Dashboard programs and the char variable Ian W. Programming 13 26-06-2002 02:07
what teams have a variable transmissions? Greg Perkins Technical Discussion 4 06-03-2002 06:10
Pbasic argument question... Ghetto_Child Programming 10 18-02-2002 09:23


All times are GMT -5. The time now is 12:16.

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