Added Interlock

Fixed PID regulation functionality

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@250 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2017-10-12 07:16:50 +00:00
parent 3df93a80d7
commit 54b6afe5a3
19 changed files with 504 additions and 261 deletions

View File

@@ -39,7 +39,7 @@
// Constant and macro definitions
// -----------------------------------------------------------------------------
#define PID_FIXED_POINT_FACTOR (1000)
#define PID_FIXED_POINT_FACTOR (10000)
// -----------------------------------------------------------------------------
// Type definitions.
@@ -92,6 +92,6 @@ extern ErrorStatus PID_construct(struct Pid* self, int Kp, int Ki, int Kd, int i
* @todo
* -----------------------------------------------------------------------------
*/
extern int PID_calculate(struct Pid* self, int input, int error);
extern int PID_calculate(struct Pid* self, int error);
#endif /* INC_PID_H_ */