Go to Post The flux capacitor should have been allowed under the flowchart as long as it met the single component maximum cost. I did check with Digikey and they no longer carry the line. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2000
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-06-2002, 23:01
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Bored?

Posted by Tony K.

Student on team #292, PantherTech, from Western High School and DaimlerChrysler.

Posted on 2/4/2000 8:25 AM MST



If you're bored, and your robot just hasn't been listening to you today, try this:

'Add this to the top
p1_y VAR WORD
p2_y VAR WORD

'Add this to the 'Custom Code' section of the robot code:

RANDOM p1_y Min 0 Max 254
RANDOM p2_y Min 0 Max 254

(all this assuming your drive wheels are hooked up to pwm's 1 and 2)

and in the serout...
p1_y.lowbyte, p2_y.lowbyte

Now, either make sure your robot is up on blocks and press reset!

I'd *never* actually recommend doing this... just for *virtual* fun... :^)
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #2   Spotlight this post!  
Unread 23-06-2002, 23:01
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Bored?

Posted by Jerry Eckert.

Engineer from Looking for a team in Raleigh, NC sponsored by .

Posted on 2/4/2000 12:27 PM MST


In Reply to: Bored? posted by Tony K on 2/4/2000 8:25 AM MST:



I think trying this experiment, even with the robot up on blocks, might be a very bad idea. You could end up with a rapid sequence of sudden changes in motor direction which could result in damage to your drive train.

BTW - the code given probably doesn't do quite what you think it does.

The 'MAX 254' statement causes the stored result to be 254 whenever the 16 bit result is .geq. (greater than or equal to) 254.

The RANDOM statement uses the value contained in the variable as an input as well as an output, with the output value being a function of the input (i.e., for a given input, the output will always be the same). Depending on what output results from an input of 254, you will either (a) end up with a constant output of 254 or (b) repeatedly cycle through the same short sequence of values.

If you want a (relatively) random byte, remove the 'MIN 0 MAX 254' and either output or assign only one byte of the word result from RANDOM.

Jerry

: If you're bored, and your robot just hasn't been listening to you today, try this:

: 'Add this to the top
: p1_y VAR WORD
: p2_y VAR WORD

: 'Add this to the 'Custom Code' section of the robot code:

: RANDOM p1_y Min 0 Max 254
: RANDOM p2_y Min 0 Max 254

: (all this assuming your drive wheels are hooked up to pwm's 1 and 2)

: and in the serout...
: p1_y.lowbyte, p2_y.lowbyte

: Now, either make sure your robot is up on blocks and press reset!

: I'd *never* actually recommend doing this... just for *virtual* fun... :^)


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #3   Spotlight this post!  
Unread 23-06-2002, 23:01
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Bored?

Posted by Tony K.

Student on team #292, PantherTech, from Western High School and DaimlerChrysler.

Posted on 2/4/2000 8:38 PM MST


In Reply to: Re: Bored? posted by Jerry Eckert on 2/4/2000 12:27 PM MST:



I knew that code was wrong. I'm not a pbasic guru :^)

And like I said, I'd never try it! :^)

__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
im bored BBFIRSTCHICK Chit-Chat 12 10-12-2003 21:18
Anyone into console gaming...hehe im Bored... activemx Chit-Chat 17 25-09-2002 09:06
I am BORED! MikeFromTeam71 Chit-Chat 26 26-08-2002 06:47
for you bored people archiver 2001 5 24-06-2002 01:21
Anyone Bored? Clark Gilbert Chit-Chat 31 06-08-2001 18:09


All times are GMT -5. The time now is 03:33.

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