Skip to content

Compiler error on ESP32 #68

@hjd1964

Description

@hjd1964

I get the following error when compiling on the ESP32 w/ libraries 2.0.7:

c:\Users\hjd19\Documents\Arduino\libraries\QuickPID-master\src\QuickPID.cpp: In constructor 'QuickPID::QuickPID(float*, float*, float*)':
c:\Users\hjd19\Documents\Arduino\libraries\QuickPID-master\src\QuickPID.cpp:62:47: error: '*.QuickPID::dispKp' is used uninitialized in this function [-Werror=uninitialized]
action = Action::direct) {
^
...and the same of dispKi, dispKd...

I simply changed the involved default parameters to 0 and all was well, not sure how you want to handle it:

ad1228b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions