Split P and I term
This commit is contained in:
parent
ae917f9e71
commit
98a26d19e6
@ -78,7 +78,10 @@ public:
|
|||||||
/// @returns The updated control output.
|
/// @returns The updated control output.
|
||||||
///
|
///
|
||||||
//long get_pi(int32_t error, float dt);
|
//long get_pi(int32_t error, float dt);
|
||||||
long get_pi(int32_t error, float dt, bool calc_i=true);
|
int32_t get_pi(int32_t error, float dt);
|
||||||
|
int32_t get_p(int32_t error);
|
||||||
|
int32_t get_i(int32_t error, float dt);
|
||||||
|
|
||||||
|
|
||||||
/// Reset the PI integrator
|
/// Reset the PI integrator
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user