Go to Post Between Andy B. and Andy G. being Andy A. has some unspoken expectations put on it. - Andy A. [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
  #16   Spotlight this post!  
Unread 11-07-2003, 19:26
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Quote:
Originally posted by Ian W.
<EDIT> Sorry about the lack of spacing, but I can't think of any other way to make it space correctly</EDIT>
use the [code ][/code ] tags.
__________________
Brandon Martus
e-mail
  #17   Spotlight this post!  
Unread 11-07-2003, 20:31
dez250 dez250 is offline
54... What a good number!
no team
 
Join Date: Dec 2002
Rookie Year: 2000
Location: Upstate NY / Manchester, NH
Posts: 1,721
dez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond repute
Send a message via AIM to dez250
Ian great job with the code, that will be very useful to some of us and its nice to know someone on here can spit out code that works and is willing to share it...
~Mike

P.S~That post was not meant to be flaming anyone
__________________
#5

-Michael Dessingue
  #18   Spotlight this post!  
Unread 12-07-2003, 01:04
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
First off, excellent idea. One thing that many people don't seem to know is that there is a variable called OUTH that is byte-sized and includes out8-out15. With it, you can clean up the code a lot, so that all you need is:

SELECT p3_wheel/16
CASE 0 to 15: outh=pwm1
case 16 to 31: outh=pwm2
...
ENDSELECT
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #19   Spotlight this post!  
Unread 12-07-2003, 01:25
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Hmm. Could you mux it like this?

Code:
var counter byte
counter = 0

mainloop:

select ( counter // 5 )
case 0:  outh = 255
case 1:  outh = pwm1
case 2:  outh = pwm2
case 3:  outh = pwm3
case 4:  outh = pwm4
endselect

counter = counter + 1

goto mainloop
Considering that the RC runs at ~40Hz, if you output four PWM values, along with a sync value (might be unnecessary), you'd get ~8 output values per second.

I have never written a dashboard program, so I don't know the intricacies of doing this kind of thing. Sorry. Just a random thought.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #20   Spotlight this post!  
Unread 12-07-2003, 09:15
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
i've tried stuff like this, but i never got it to actually work 100% of the time. i think it has something to do with the serial port or the PBASIC chip, but i was never able to find the problem, as i kinda gave up after a while. i based my "counter" off the BasicRun LED, which toggled between 0 and 1 every loop, so i think it may have gone too fast, or slow, or something, for it to properly sync with the computer. if anyone wants to see my 2002 dashboard program (simple C/C++ console app), i'm more than willing to post it, but it doesn't work.

rob, thanks for the tip with OUTH, i never knew it existed till now, although it may or may not be important next year.

brandon, would it be that hard to add a tag button, or are we just so close to vB3 now that it doesn't pay to go and edit the vB2 code (the latter, i hope )?
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #21   Spotlight this post!  
Unread 12-07-2003, 11:51
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by Ian W.

brandon, would it be that hard to add a tag button, or are we just so close to vB3 now that it doesn't pay to go and edit the vB2 code (the latter, i hope )?
It's already there, but for some reason it's labeled #. Anybody have any idea why this is?
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #22   Spotlight this post!  
Unread 12-07-2003, 18:46
dez250 dez250 is offline
54... What a good number!
no team
 
Join Date: Dec 2002
Rookie Year: 2000
Location: Upstate NY / Manchester, NH
Posts: 1,721
dez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond repute
Send a message via AIM to dez250
Now i am really glad i am not the programmer for team 250...
~Mike

P.S., Thanks for the outh code, that will help is some other pbasic programing I'm doing on boebots...
__________________
#5

-Michael Dessingue
  #23   Spotlight this post!  
Unread 14-07-2003, 08:37
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Quote:
Originally posted by Tytus Gerrish
firestorm dosent work. WHY?
That's really not the most descriptive error report I've ever seen. Perhaps if you gave me some more information I might be able to help you (given I haven't looked at the code in about 4 years).

Matt
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
Custom dashboard program available. Interest? archiver 2001 4 24-06-2002 00:45
Dashboard Decoder Release Version 1.0 Now Available! archiver 2000 1 23-06-2002 22:50
Dashboard Protocol Library archiver 2000 9 23-06-2002 22:24
New Innovation FIRST control system and the dashboard archiver 2000 0 23-06-2002 22:15
Dashboard Viewer Khalicl13 Technical Discussion 8 15-06-2001 23:36


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

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