|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Quote:
|
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||||
|
||||||
|
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 |
|
#4
|
||||
|
||||
|
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 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. |
|
#5
|
||||
|
||||
|
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 )? |
|
#6
|
||||||
|
||||||
|
Quote:
|
|
#7
|
||||
|
||||
|
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... |
|
#8
|
|||||
|
|||||
|
Quote:
Matt |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |