Manual

June 2004 Isis® Sonar User's Manual, Volume 2
48
Value is a numerical value or constant that will be applied to
Token.
Token is any token cited in ‘Values Allowed Over Serial
Interfaces and Stored by Isis’.
Note: Operator and Value must be contiguous without intervening
spaces, and the operator-value pair must be contained within delimiters
of braces, parentheses, or brackets. Token must immediately follow the
closing delimiter, without a space. If more than one math operator is
specified on a single variable, the order of operation is: multiply, subtract,
divide, add.
Example of math performed on a template token:
{/10}G
This instructs Isis to take the current value for Gyro, divide it by ten, and
store it. This is a useful routine because raw Gyro output is stored in integer
form, where all digits up to the rightmost digit represent whole degrees,
while the rightmost digit represents tenths of degrees. If the stored integer is
greater than 360, Isis will regard the number as out of bounds—unless it is
first “translated” by the foregoing routine to express the number as a
combination of degrees and tenths of degrees.
Another example:
{*57.2957795}h
In the foregoing example, the transmitted value is converted from radians to
degrees and that result is assigned to the serial template token h, which is
towfish heading.
Another example:
{*0.90}{+10.5}o
This operation computes Cable Out by taking 90% of the transmitted value,
adds 10.5 and assigns the result as Cable Out (the serial template token o).
A final example:
{-100}{/3.2808}o
This instructs Isis to subtract 100 feet from the Cable-Out value (token o),
divide the result by 3.2808, and store it. The number 3.2808 is a constant
used to convert feet to meters.
In the above examples, you just as easily could have used parentheses (),
or brackets [] instead of braces {}. Isis treats them the same.
Appendix D: Serial Interfaces