<div class="gmail_quote">Richard,<br>Great idea to use fuzzy logic with the Propeller...<br><br>Check out tutorial #6 from ViewPort.&nbsp; It shows how you can use fuzzy logic to land on the moon.&nbsp; Remember the arcade game &quot;Lunar Lander&quot;?&nbsp; The program starts with a height and speed (both of which are &quot;fuzzified&quot;) and uses rules to manipulate thrust until the craft has landed gently.&nbsp; Lots of comments in the code... Here is the critical section:
<br><br>f.fuzzifyA(height,FMHeight)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;fuzzifies Height into fuzzy register A<br>f.fuzzifyB(speed ,FMSpeed)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;fuzzifies Speed into fuzzy register B<br>f.doandRule(FRThrottle)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;calculate new Throttle with ThrottleRule
<br>throttle:=f.defuzzify(FMThrottle)&#39;defuzzify Throttle to a number<br><br>ViewPort is available at: <a href="http://mydancebot.com/viewport">http://mydancebot.com/viewport</a><br><br>Hanno<br><br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can anyone point me in the direction of some good but simple tutorials<br>on fuzzy logic? I that know Synco and Hanno have used this successfully.<br>The initial app that I have in mind is for a line follower using the<br>
propellor chip and a/d conversion of the optical inputs using sigma<br>delta conversion.<br>Richard<br></blockquote></div><br>