Add example for PIDMotorController code
This commit is contained in:
parent
6302520df8
commit
22e4ed7edc
|
@ -82,3 +82,12 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
PIDMotorController pidController;
|
||||||
|
pidController.setTargetRPM(1500.0);
|
||||||
|
|
||||||
|
// loop()
|
||||||
|
double currentRPM = readEncoderRPM(); // Your encoder reading function
|
||||||
|
uint16_t pwmValue = pidController.update(currentRPM);
|
||||||
|
*/
|
Loading…
Reference in New Issue