<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Automated foosball table &#187; Detailed log</title>
	<atom:link href="http://foospmp.myl.dk/archives/category/detailed-log/feed" rel="self" type="application/rss+xml" />
	<link>https://foospmp.myl.dk</link>
	<description>A project at DTU</description>
	<lastBuildDate>Sun, 17 Apr 2011 21:04:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Picture and AI stuff</title>
		<link>https://foospmp.myl.dk/archives/43</link>
		<comments>https://foospmp.myl.dk/archives/43#comments</comments>
		<pubDate>Mon, 04 Dec 2006 10:56:43 +0000</pubDate>
		<dc:creator>Martin Ã˜rding-Thomsen</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=43</guid>
		<description><![CDATA[The antishaker is finally working again, using the new calibration. It has been improved to work with subpixel precision. Also, for a long time it was known to compensate too little compared to the found ball position. This has been fixed, it seems, by multiplying the found shakiness by about 1.1. Measurements have been made, [...]]]></description>
			<content:encoded><![CDATA[<p>The antishaker is finally working again, using the new calibration. It has been improved to work with subpixel precision. Also, for a long time it was known to compensate too little compared to the found ball position. This has been fixed, it seems, by multiplying the found shakiness by about 1.1.</p>
<p>Measurements have been made, showing that the found ball and man positions were slightly off in every second picture. This is due to the coarseness of the u and v channels. Fixed by adding or subtracting a value for every second scan picture to the found position.</p>
<p>A rather simple DefenseAttack mode has been implemented. It tries to move the man around the ball and shoot. Nothing more, nothing less. It works ok in the simulator but could be a lot smarter.</p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/43/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool Motors</title>
		<link>https://foospmp.myl.dk/archives/42</link>
		<comments>https://foospmp.myl.dk/archives/42#comments</comments>
		<pubDate>Fri, 01 Dec 2006 15:56:39 +0000</pubDate>
		<dc:creator>Anders Chr. Myrup</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=42</guid>
		<description><![CDATA[Various updates for the MCs were implemented. The rotation MC softwareÂ lacked precision, because our regul algorithm didn&#8217;t work when the precision was set below 30 ticks-+ (1000 ticks = 2pi). The motor was oscillating around the wanted position if the precision was set lower. This has been fixed now, (with a nasty hack), simply shifting [...]]]></description>
			<content:encoded><![CDATA[<p>Various updates for the MCs were implemented. The rotation MC softwareÂ lacked precision, because our regul algorithm didn&#8217;t work when the precision was set below 30 ticks-+ (1000 ticks = 2pi). The motor was oscillating around the wanted position if the precision was set lower. This has been fixed now, (with a nasty hack), simply shifting the regul results 3 bits down, when wanted position is less than 30 ticks away.</p>
<p>Also another problem was fixed. We noticed that the motors heated even though they weren&#8217;t in use.</p>
<p>When they weren&#8217;t in use the MC software set the engine voltages at 128. But tests showed that the zero voltage wasn&#8217;t 128 for the motors, in fact, they were all different, but within 128 +- 5. As a result a fix was implemented that turns the power off completely (PWM_OFF) if the motor voltage is within 128+- 15 because the rods won&#8217;t move for voltages closer to 128 value anyway.</p>
<p>Now the motors are nice &#038; cool (when they aren&#8217;t in use).</p>
<p>The test results are attachedÂ <span id="more-42"></span></p>
<p>-,164: 129<br />
-,111: 130<br />
-,07:Â 131<br />
-,039:Â 132<br />
0,006:133<br />
0,054:134</p>
<p>20 amps offense<br />
10 apms (II) offense<br />
0,04:134<br />
-0,003:133<br />
-0,041:132</p>
<p>CENTER<br />
0,206:128<br />
0.325:130<br />
0.220:127<br />
0,144:125<br />
0,061:123<br />
0,030:122<&#8212;-<br />
0,060:121</p>
<p>DEFENSE<br />
0,065:135<br />
0,45:133<br />
0,39:132<br />
0,29:131<br />
0,21:130<br />
0,05:128<br />
-0,03:127<&#8212;-<br />
-0,11:126<br />
-0,19:125</p>
<p>CENTER2<br />
0,27:128<br />
-0,07:123<br />
-0,04:122<br />
-0,05:121</p>
<p>OFFENSE2<br />
0,04:134<br />
-0,001:133<&#8212;-<br />
-0,03:132<br />
-0,08:131</p>
<p>GOALIE<br />
0,19:128<br />
0,12:127<br />
0,036:126<&#8212;&#8211;<br />
-0,06:125<br />
-0,15:123</p>
<p>Â </p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/42/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random lag</title>
		<link>https://foospmp.myl.dk/archives/41</link>
		<comments>https://foospmp.myl.dk/archives/41#comments</comments>
		<pubDate>Mon, 27 Nov 2006 10:33:30 +0000</pubDate>
		<dc:creator>Martin Ã˜rding-Thomsen</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=41</guid>
		<description><![CDATA[At random points in time our program was found to skip frames. After some investigation 3 factors turned out to cause the lag: Logging text to more than one file per frame. I.e. it&#8217;s not possible to do both profiling and value logging as we tended to do it before. Not having a sleep() in [...]]]></description>
			<content:encoded><![CDATA[<p>At random points in time our program was found to skip frames. After some investigation 3 factors turned out to cause the lag:</p>
<ul>
<li>Logging text to more than one file per frame. I.e. it&#8217;s not possible to do both profiling and value logging as we tended to do it before.</li>
<li>Not having a sleep() in CommunicatorThread when not using the serial port. This is because the loop in that thread otherwise consumes 100% CPU.</li>
<li>Running other programs on rt14 at the same time, even just the &#8220;top&#8221; program which shows a list of the running processes.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/41/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote connections and VSS</title>
		<link>https://foospmp.myl.dk/archives/25</link>
		<comments>https://foospmp.myl.dk/archives/25#comments</comments>
		<pubDate>Fri, 29 Sep 2006 22:58:38 +0000</pubDate>
		<dc:creator>Martin Ã˜rding-Thomsen</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=25</guid>
		<description><![CDATA[Today we gave up the plans of compiling the ai on other systems. It was simply too much trouble compared to the setup we&#8217;ve created now: The project is in VSS (microsoft visual source safe) on our windows pc. From there we can retrieve the files on the same computer and from the macbook. When [...]]]></description>
			<content:encoded><![CDATA[<p>Today we gave up the plans of compiling the ai on other systems. It was simply too much trouble compared to the setup we&#8217;ve created now:</p>
<p>The project is in VSS (microsoft visual source safe) on our windows pc. From there we can retrieve the files on the same computer and from the macbook. When someone wants to compile it, he copies his source files to rt14 (takes a couple of seconds) and compiles and runs it from there. This way we can both edit the files at the same time and we don&#8217;t have to wait for the other guy to have some code that compiles &#8211; the code in vss must always work.</p>
<p>This way we also have no trouble merging our projects, vs and vss takes care of most of it. We only have to resolve the conflicts that may arise.</p>
<p>Another thing we found out today was that using ssh tunneling through rt14, we can do remote desktopping on the windows machine. This means that we can work from home as long as we are not using the actual foosball table.</p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/25/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling the beast on other systems</title>
		<link>https://foospmp.myl.dk/archives/24</link>
		<comments>https://foospmp.myl.dk/archives/24#comments</comments>
		<pubDate>Thu, 28 Sep 2006 20:14:49 +0000</pubDate>
		<dc:creator>Anders Chr. Myrup</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=24</guid>
		<description><![CDATA[Today we succesfully compiled and ran the main program on Mac OS X. The compiler on rt14 is very old, and apparently allows some syntax faults like forgetting inclusion of namespaces. The newer compiler on Mac OS X didn&#8217;t eat those, so they had to be fixed. Two real problems arose. First, the semaphore implementations [...]]]></description>
			<content:encoded><![CDATA[<p>Today we succesfully compiled and ran the main program on Mac OS X.<br />
The compiler on rt14 is very old, and apparently allows some syntax faults like forgetting inclusion of namespaces. The newer compiler on Mac OS X didn&#8217;t eat those, so they had to be fixed.<br />
Two real problems arose. First, the semaphore implementations on Mac OS X are different. As far as we know, semaphore creation is only allowed by name. So that had to be implemented, unfortunately if they aren&#8217;t deleted properly, they will stay in the filesystem, and be a pain on the next run. This has to be fixed tomorrow.<br />
Also, SIGRTMIN and SIGRTMAX aren&#8217;t defined in Mac OS X. Apparently it works with a setting of 0 and 40.</p>
<p>The run showed that the speed of the simulation is a bit hardware dependent. The ball now moves around and comes to a stop a bit faster, this is also a job for tomorrow to fix.<br />
It will be interesting to see wether or not the newly fixed implementations still compile on rt14.</p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/24/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Misc misc</title>
		<link>https://foospmp.myl.dk/archives/23</link>
		<comments>https://foospmp.myl.dk/archives/23#comments</comments>
		<pubDate>Wed, 27 Sep 2006 17:27:02 +0000</pubDate>
		<dc:creator>Anders Chr. Myrup</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=23</guid>
		<description><![CDATA[Added lighting to the OpenGl GUI. Rod-angles are now sent and showed correctly at the GUI (we had a format conflict radians vs. degrees). Created a physics class to support the simulator and the prophet. Created an algorithm to detect the foosman which is closest to the ball at any given point for any rod.]]></description>
			<content:encoded><![CDATA[<p>Added lighting to the OpenGl GUI.<br />
Rod-angles are now sent and showed correctly at the GUI (we had a format conflict radians vs. degrees).<br />
Created a physics class to support the simulator and the prophet.<br />
Created an algorithm to detect the foosman which is closest to the ball at any given point for any rod.</p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/23/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulator updates</title>
		<link>https://foospmp.myl.dk/archives/22</link>
		<comments>https://foospmp.myl.dk/archives/22#comments</comments>
		<pubDate>Mon, 25 Sep 2006 17:30:27 +0000</pubDate>
		<dc:creator>Martin Ã˜rding-Thomsen</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=22</guid>
		<description><![CDATA[Some improvements on the simulation were made today,Â making our model look pretty nice. Here&#8217;s what&#8217;s been done:Â  The inclining surfaces near the borders and corners of the table are now simulated quite nicely. For some reason they apply too great a force to the ball still. Maybe due to the rotational inertia of the ball, [...]]]></description>
			<content:encoded><![CDATA[<p>Some improvements on the simulation were made today,Â making our model look pretty nice. Here&#8217;s what&#8217;s been done:Â </p>
<p>The inclining surfaces near the borders and corners of the table are now simulated quite nicely. For some reason they apply too great a force to the ball still. Maybe due to the rotational inertia of the ball, which we don&#8217;t simulate at present?</p>
<p>The rolling friction on the ball seems pretty accurate now.</p>
<p>A bug was corrected in the rod update function, so the rods don&#8217;t move instantaneously anymore.</p>
<p>The most important feature missing in the simulator now is collision detection and the corresponding change in ball velocity. I wonder how we&#8217;re gonna do that&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/22/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulator maintenance</title>
		<link>https://foospmp.myl.dk/archives/20</link>
		<comments>https://foospmp.myl.dk/archives/20#comments</comments>
		<pubDate>Mon, 25 Sep 2006 14:44:55 +0000</pubDate>
		<dc:creator>Anders Chr. Myrup</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=20</guid>
		<description><![CDATA[Redid the physics part of the simulator. Now implemented with consideration of forces, instead of the pseudo realistic implementation. This will allow us to create more accurate simulations, in particular when we get interested in creating better simulations of inclining surfaces. Also fixed some network connectivity bugs in the GUI.]]></description>
			<content:encoded><![CDATA[<p>Redid the physics part of the simulator. Now implemented with consideration of forces, instead of the pseudo realistic implementation. This will allow us to create more accurate simulations, in particular when we get interested in creating better simulations of inclining surfaces.<br />
Also fixed some network connectivity bugs in the GUI.</p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/20/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulator working</title>
		<link>https://foospmp.myl.dk/archives/19</link>
		<comments>https://foospmp.myl.dk/archives/19#comments</comments>
		<pubDate>Fri, 22 Sep 2006 14:40:34 +0000</pubDate>
		<dc:creator>Anders Chr. Myrup</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=19</guid>
		<description><![CDATA[We now have the simulator working. Screenshots will follow. Also switched from a mix of floats and doubles to using doubles consistently. If this has a negative effect performance-wise, a move to floats would be the solution. Here&#8217;s a screenshot: The GUI]]></description>
			<content:encoded><![CDATA[<p>We now have the simulator working. Screenshots will follow.<br />
Also switched from a mix of floats and doubles to using doubles consistently.<br />
If this has a negative effect performance-wise, a move to floats would be the solution.<br />
Here&#8217;s a screenshot: <a href="media/ss1.png">The GUI</a></p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/19/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GUI programming</title>
		<link>https://foospmp.myl.dk/archives/18</link>
		<comments>https://foospmp.myl.dk/archives/18#comments</comments>
		<pubDate>Thu, 21 Sep 2006 11:29:10 +0000</pubDate>
		<dc:creator>Anders Chr. Myrup</dc:creator>
				<category><![CDATA[Detailed log]]></category>

		<guid isPermaLink="false">http://foospmp.myl.dk/?p=18</guid>
		<description><![CDATA[Today we worked on the socket interface on both ends. Also started on the simulation GUIÂ which is to be integrated with the current GUI for viewing the game status.]]></description>
			<content:encoded><![CDATA[<p>Today we worked on the socket interface on both ends. Also started on the simulation GUIÂ which is to be integrated with the current GUI for viewing the game status.</p>
]]></content:encoded>
			<wfw:commentRss>https://foospmp.myl.dk/archives/18/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: foospmp.myl.dk @ 2026-04-11 22:09:01 -->