HCS12 Fuzzy Code
This code handles the fuzzification and defuzzification of the error input for my Fuzzy Urn project. This may not be the best/correct/standard way of coding Fuzzy logic. I'm not sure because I have not seen any before but it seems logical to me and it does work. Unfortunately I wrote this without much flexibility in mind (I plan to write something more flexible in the future) but hopefully you can see how it works to get an idea for your own code.