Helper class for PHD. Fork of original code. Used for PHD_data_out... program. Changed bit precision from double to float and time seen to number of microseconds to increase accuracy.
Fork of Regrind by
Diff: Regrind.h
- Revision:
- 1:713783e6e8be
- Parent:
- 0:3f8f88e0fac6
diff -r 3f8f88e0fac6 -r 713783e6e8be Regrind.h --- a/Regrind.h Tue Nov 24 09:36:41 2015 +0000 +++ b/Regrind.h Wed Dec 09 20:09:28 2015 +0000 @@ -6,16 +6,16 @@ class Regrind { public: Regrind(); - Regrind(double tS, int l, double v, double a, int d, int pD); - void setVelocity(double distance); - void setAcceleration(double distance); + Regrind(int tS, int l, float v, float a, int d, int pD); + void setVelocity(float distance); + void setAcceleration(float distance); void clearRegrind(); public: - double timeSeen; + int timeSeen; int location; - double velocity; - double acceleration; + float velocity; + float acceleration; int divert; int pastDiverter; Timer t;