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
Regrind.h
- Committer:
- mitchpang
- Date:
- 2015-12-09
- Revision:
- 1:713783e6e8be
- Parent:
- 0:3f8f88e0fac6
File content as of revision 1:713783e6e8be:
#ifndef __REGRIND_H__ #define __REGRIND_H__ #include "mbed.h" class Regrind { public: Regrind(); Regrind(int tS, int l, float v, float a, int d, int pD); void setVelocity(float distance); void setAcceleration(float distance); void clearRegrind(); public: int timeSeen; int location; float velocity; float acceleration; int divert; int pastDiverter; Timer t; }; #endif /* __REGRIND_H__ */