Competition Language

SeedSpeed

These commands work like the other speed commands but they are meant for variables. To accomplish this task, you must first save the beginning of your check. That is what the seed speed command is. You just tell it the variable you want to tell the speed of later and it will remember the beginning value. These commands can also be used for sensors or encoders, but it would provide the advantage of not setting the values to zero.

QuerySpeed

To actually acquire the speed of the variable, you must use the query result command. It works like the other speed commands. You just tell it the variable you would like to save the speed to, and the variable you saved to the seed speed a little while ago in your program.

How to Use

Just as the other speed commands, SeedSpeed and QuerySpeed are used to find the speed - or change per time - of something. The two commands are used in junction to find the speed of a variable or any other value that you could not have before. You initialize the value with SeedSpeed by inputing the value. You then would make any changes that you want to check the speed of to the variable, and finally use the QuerySpeed command with the output variable and the variable for the speed. This can be used right after one another for things like the vex channels which do not have their own speed commands, or a variable you have to make changes to on your own.