i made a fuzzy controller in C for a 8051.you can use the book "8051 final word" to see how a fuzzy algorithm is implemented.The solution to your problem is to code the triangle in this way:you use 4 constants
1) is the value of the left point
2) is the value for the middle point
3) is the value for the right point
4) is the slope of the triangle
2
/\
1/ \3 4 is the slope
how i can create the slope fuzzy logic using ccs software..actually my task is to do fuzzy logic control water heater using PIC 18F4550....i want to know how to start it....