José Claudio / Mbed 2 deprecated QuadCopter-Sensor-Serial

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FuzzyController.h Source File

FuzzyController.h

00001 #ifndef FC_H
00002 #define FC_H
00003 
00004 #pragma once
00005 
00006 #include "FuzzyIO.h"
00007 
00008 class FuzzyController
00009 {
00010     public:
00011         FuzzyController(void);
00012         ~FuzzyController(void);
00013 
00014         void addInput(FuzzyIO* input);
00015         void addOutput(FuzzyIO* output);
00016         void addRules(int rulesAmount, int** mfsIndexs);
00017 
00018         float* compute(float* values);
00019 
00020     private:
00021         FuzzyIO** inputs;
00022         FuzzyIO** outputs;
00023 
00024         int inputsLenght;
00025         int outputsLenght;
00026 
00027         int rulesAmount;
00028         int** mfsIndexs;
00029 
00030         float* outputsValues;
00031         float* inputsValues;
00032         
00033         float* num;
00034         float* den;
00035 
00036         float min(float* values);
00037         float max(float* values);
00038 };
00039 
00040 #endif