SMR
From Rsewiki
(Difference between revisions)
(→Set RHD write variable) |
|||
Line 28: | Line 28: | ||
Sets a RHD write variable with the name variable_name to the value 88 | Sets a RHD write variable with the name variable_name to the value 88 | ||
+ | |||
+ | ===Get RHD variable=== | ||
+ | |||
+ | Use the name of the read variable preceded with a $, e.g. | ||
+ | |||
+ | eval $encl | ||
+ | eval $tick | ||
===quotes=== | ===quotes=== |
Revision as of 12:02, 9 June 2015
Contents |
SMR Command Languge
Reference document for SMR command language (SMRCL)
SMRCL http://aut.elektro.dtu.dk/mobotware/doc/smrcl.pdf
SMRCL simulator: http://www.iau.dtu.dk/ingarb/sim/
Additional smrcl features
Also available SMRCL functions
asin(x) acos(x)
reverse using smrcl
Reverse 0.5m straight
fwd -0.5
Reverse and turn (turnradius 0.5m turn 90 degrees to the left, speed 0.2 m/s). Back and forward to the same end position:
turnr 0.5 90 @v-0.2 turnr 0.5 90 @v0.2 stop
Set RHD write variable
setoutput "variable_name" 88
Sets a RHD write variable with the name variable_name to the value 88
Get RHD variable
Use the name of the read variable preceded with a $, e.g.
eval $encl eval $tick
quotes
In smrcl backslash '\' is interpreted as quotes '"'
Further links
Old outdated links
SMR Flash Disk Cloning (See updated version on main-page)