The subsystem design/basis for the final project

Dependencies:   mbed-rtos mbed-src pixylib

Committer:
balsamfir
Date:
Sun Apr 03 19:00:21 2016 +0000
Revision:
17:47e107f9587b
Parent:
6:52686c25e4af
Child:
19:05b8123905fb
Added print ability to tunning

Who changed what in which revision?

UserRevisionLine numberNew contents of line
balsamfir 5:f655435d0782 1 #ifndef PERIODIC_PI_H
balsamfir 5:f655435d0782 2 #define PERIODIC_PI_H
balsamfir 5:f655435d0782 3
balsamfir 5:f655435d0782 4 #include "mbed.h"
balsamfir 5:f655435d0782 5
balsamfir 5:f655435d0782 6
balsamfir 5:f655435d0782 7
balsamfir 5:f655435d0782 8 class PeriodicPI
balsamfir 5:f655435d0782 9 {
balsamfir 5:f655435d0782 10 public:
balsamfir 5:f655435d0782 11 PeriodicPI(float periodSec, float kP=0, float kI=0);
balsamfir 6:52686c25e4af 12 float Run(float error, float bound);
balsamfir 5:f655435d0782 13 float GetIntegral();
balsamfir 5:f655435d0782 14 float GetOutput();
balsamfir 17:47e107f9587b 15 void Reset();
balsamfir 5:f655435d0782 16
balsamfir 5:f655435d0782 17 float kP;
balsamfir 5:f655435d0782 18 float kI;
balsamfir 5:f655435d0782 19
balsamfir 5:f655435d0782 20 private:
balsamfir 5:f655435d0782 21 float integral;
balsamfir 5:f655435d0782 22 float output;
balsamfir 5:f655435d0782 23 float periodSec;
balsamfir 5:f655435d0782 24
balsamfir 5:f655435d0782 25 };
balsamfir 5:f655435d0782 26
balsamfir 5:f655435d0782 27 #endif // PERIODIC_PI_H