Skip to content

[FEATURE] Expose PID class members for voltage alignment during mode switching #566

Description

@zyy37

Is your feature request related to a problem? Please describe.

class PIDController
{
...
protected:
    float error_prev; //!< last tracking error value
    float output_prev;  //!< last pid output value
    float integral_prev; //!< last integral component value
    unsigned long timestamp_prev; //!< Last execution timestamp
};

When the mode needs to be switched, in addition to aligning the angle and angular velocity, the voltage and other parameters also need to be aligned. It is hoped to expose these variables within the PID, such as error_prev, output_prev, integral_prev. Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions