|
Re: Read pre-determined set of numbers
I would store them in an array and then index into different elements of the array using the elapsed time.
You can see an example of how to do this in the default Autonomous code. The motor powers are stored in an array ("Straight Power" and "Y Power") and then elapsed time in seconds is used as an index.
__________________
2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
|