Go Down

Topic: Fuzzy Logic on Arduino print issue (Read 694 times) previous topic - next topic

gamicolo

Hi,

I'm having some issues with the library, in particular with the fuzzify method and the print/println method of the Serial class.

The idea of the class is the following:

Class Controller:
{
    ...
    //constructor
    Fuzzy* _fuzzy = new Fuzzy();
    ...
};

Controller:Method readIn()
{
    //read input and do something
    _fuzzy->setInput( <id>, <_inReading> );
    _fuzzy->fuzzify();
}

And in the scketch i have the following:

Controller* fController = new fController();

void loop () {
    ...
    result = fController->readIn();
    Serial.println(result);
    ...
}

The problem comes when using the method readIn, the Serial.println does not print on the serial interface (using the serial monitor of the Arduino IDE).

Any face this issue before? Any ideas of what the problem could be the problem?

Thanks

ballscrewbob

@gamicolo

TOPIC SPLIT

As a new user you should take a few minutes to READ THIS.

Then you would know more about what to post and how to post for your issue instead of awakening an old thread.

Bob.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up