![]() |
Quote:
|
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 |
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 |
Hmm. Could you mux it like this?
Code:
var counter byteI 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'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 :p)? |
Quote:
|
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... |
Quote:
Matt |
| All times are GMT -5. The time now is 20:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi