|
Re: Or how about this....
Posted by Mike.
Student on team #175, Buzz, from Enrico Fermi High School and UTC - Hamilton Standard Space Systems.
Posted on 9/16/99 9:28 PM MST
In Reply to: Or how about this.... posted by Joe Johnson on 9/16/99 6:33 PM MST:
I like that idea of debug programs and joystick calibration programs. Last year our robot had a feauture where if you moved the thumb wheel on joystick 1 the joysticks would be auto-calibrated. It was a great feature but took away from loop time so it was abandoned.
You can switch from program to program by using the command 'run x'. Where x is the program number, 0-7 with 0 being the default on power-up. You can share variables globally, however they still must be initialised in each program. A word of caution to FIRST programmers: if you do not initialise variables in the same order as they were the first time they were initialised you will have many problems sharing correct variables.
- Mike
: Another cool thing you could do is to have a 'set up/debug' program that would zero joysticks exercise particular PWM's etc. I suppose that the programs all have access to the same eeprom space so values could be passed from one program to another.
: This would allow for killer loop times as you say, while having all the other stuff available if you need it.
: How do you switch from task to task by the way?
: Can the programs choose to switch between themselves? If so (and again, assuming eeprom space is common) then perhaps we could even set up a kind of subroutine structure.
: I'll take what I can get.
: Joe J.
__________________
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.
|