<div class="gmail_quote">Richard,<br>Great idea to use fuzzy logic with the Propeller...<br><br>Check out tutorial #6 from ViewPort. It shows how you can use fuzzy logic to land on the moon. Remember the arcade game "Lunar Lander"? The program starts with a height and speed (both of which are "fuzzified") and uses rules to manipulate thrust until the craft has landed gently. Lots of comments in the code... Here is the critical section:
<br><br>f.fuzzifyA(height,FMHeight) 'fuzzifies Height into fuzzy register A<br>f.fuzzifyB(speed ,FMSpeed) 'fuzzifies Speed into fuzzy register B<br>f.doandRule(FRThrottle) 'calculate new Throttle with ThrottleRule
<br>throttle:=f.defuzzify(FMThrottle)'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>