pid into lua

This commit is contained in:
rusefillc 2021-10-21 19:43:12 -04:00
parent ec5786695e
commit 8f6420ba98
1 changed files with 11 additions and 0 deletions

View File

@ -126,3 +126,14 @@ public:
private:
float limitOutput(float v) const;
};
// todo: composition instead of inheritance? :(
class PidWithParameters : public Pid {
public:
pid_s parametersStorage;
PidWithParameters() {
initPidClass(&parametersStorage);
}
};