| VALUE | Index |
Overview:
This tag identifies a value for a PROPERTY . A value is one of the supported types: integer, float, or string. String values must be surrounded by double quotes. A float must have a decimal point. A number without a decimal point will be converted to an integer. Defined constants may be used for values if they have adhere to these formats.
| Contents | Description |
| supported type | An integer, float, or string value. |
Example:
#include <aGarciaDefs.tea>
<BEHAVIOR>
<PRIMITIVE>
"hug"
</PRIMITIVE>
<PROPERTY>
<NAME>
"range"
</NAME>
<VALUE>
0.254
</VALUE>
</PROPERTY>
<PROPERTY>
<NAME>
"side"
</NAME>
<VALUE>
aGARCIA_MOTO_ARANGE_SIDE_LEFT
</VALUE>
</PROPERTY>
<PROPERTY>
<NAME>
"mode"
</NAME>
<VALUE>
aGARCIA_HUGMODE_DEFAULT
</VALUE>
</PROPERTY>
</BEHAVIOR>
This creates a script with a single hug primitive that will follow a left wall at a range of 0.254 units using the default hug mode. The script uses defined integer values found in the aGarciaDefs.tea file.
Related: