<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Smr_write</id>
	<title>Smr write - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Smr_write"/>
	<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Smr_write&amp;action=history"/>
	<updated>2026-04-26T23:14:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rsewiki.electro.dtu.dk/index.php?title=Smr_write&amp;diff=228&amp;oldid=prev</id>
		<title>Lvm: New page:  int smr_write(struct smr *robot);  Smr_write communcates with the smr daemon [smrd], sending fields in the struct smr pointed to by &#039;&#039;robot&#039;&#039; for transmission in a subsequent sample p...</title>
		<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Smr_write&amp;diff=228&amp;oldid=prev"/>
		<updated>2008-09-29T12:24:52Z</updated>

		<summary type="html">&lt;p&gt;New page:  int smr_write(struct smr *robot);  Smr_write communcates with the smr daemon [smrd], sending fields in the &lt;a href=&quot;/index.php?title=Struct_smr&quot; title=&quot;Struct smr&quot;&gt;struct smr&lt;/a&gt; pointed to by &amp;#039;&amp;#039;robot&amp;#039;&amp;#039; for transmission in a subsequent sample p...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; int smr_write(struct smr *robot);&lt;br /&gt;
&lt;br /&gt;
Smr_write communcates with the smr daemon [smrd], sending fields in the [[struct smr]] pointed to by &amp;#039;&amp;#039;robot&amp;#039;&amp;#039; for&lt;br /&gt;
transmission in a subsequent sample period.&lt;br /&gt;
&lt;br /&gt;
Smr_write uses some of the fields in *robot as input parameters.&lt;br /&gt;
&lt;br /&gt;
Ordinarily, zero is returned. If case of error, for example if communication is not possible, a non-zero value is returned.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Input parameters&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The following fields are read by smr_write:&lt;br /&gt;
   robot-&amp;gt;write_flags:   An ORed combination of flags, indicating which data smr_write should send.&lt;br /&gt;
   robot-&amp;gt;left.speed, robot-&amp;gt;right.speed:   Motor speed reference values.&lt;br /&gt;
   robot-&amp;gt;msg:   Asynchronous message to send.&lt;br /&gt;
&lt;br /&gt;
The valid write flags are:&lt;br /&gt;
   SMR_FLAG_LV:   Left motor speed.&lt;br /&gt;
   SMR_FLAG_RV:   Right motor speed.&lt;br /&gt;
   SMR_FLAG_AM:   Asynchronous message.&lt;/div&gt;</summary>
		<author><name>Lvm</name></author>
	</entry>
</feed>