|
delta_t is the only (bult-in) way of knowing how much time has passed between loops. Basically, it will tell you how many loops (each 26ms long) you have "missed" since your last SERIN. If you aren't using it now, you can safely get rid of it.
READ/WRITE has nothing to do with variables. Instead, they are commands used to read and write data from the 2048k per bank of EEPROM that the Stamp normally uses to store the actual program in. So far, the best use of it that I've seen is in those programs that allow you to "teach" the robot autonomous mode. Do a quick search and you'll see what I'm talking about. Here's a quick rundown on the syntax:
READ Location, Variable
WRITE Location, DataItem
Location: a number between 0 and 2047 indicating the place in EEPROM you want to read or write from.
Variable: the variable you want to use to get the data. This variable will have its value set to the value of EEPROM at Location.
DataItem: the value you want to write to EEPROM
Examples:
READ 42, tempVar
WRITE 42, 64
The first will load the value of the EEPROM at location 42 into the variable tempVar. The second will store the value 64 at location 42.
In theory, RoboEmu properly supports these commands so feel free to give them a try there.
--Rob
|