first publish
Dependents: CleaningMachine_Betago CleaningMachine_Betago clean_V1 CleaningM-Palm ... more
Process.h@0:e4727bcb1054, 2016-02-15 (annotated)
- Committer:
- icyzkungz
- Date:
- Mon Feb 15 17:45:38 2016 +0000
- Revision:
- 0:e4727bcb1054
first publish
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
icyzkungz | 0:e4727bcb1054 | 1 | #ifndef PROCESS_H |
icyzkungz | 0:e4727bcb1054 | 2 | #define PROCESS_H |
icyzkungz | 0:e4727bcb1054 | 3 | #include "mbed.h" |
icyzkungz | 0:e4727bcb1054 | 4 | |
icyzkungz | 0:e4727bcb1054 | 5 | #define PROCESS_DEBUG |
icyzkungz | 0:e4727bcb1054 | 6 | |
icyzkungz | 0:e4727bcb1054 | 7 | class Process |
icyzkungz | 0:e4727bcb1054 | 8 | { |
icyzkungz | 0:e4727bcb1054 | 9 | public: |
icyzkungz | 0:e4727bcb1054 | 10 | Serial *pc; |
icyzkungz | 0:e4727bcb1054 | 11 | Process(); |
icyzkungz | 0:e4727bcb1054 | 12 | |
icyzkungz | 0:e4727bcb1054 | 13 | //Walk Style |
icyzkungz | 0:e4727bcb1054 | 14 | void EdgeWalk(); |
icyzkungz | 0:e4727bcb1054 | 15 | |
icyzkungz | 0:e4727bcb1054 | 16 | //Calculation |
icyzkungz | 0:e4727bcb1054 | 17 | void CalEdgeWalk(); |
icyzkungz | 0:e4727bcb1054 | 18 | float StandardDeviation(); |
icyzkungz | 0:e4727bcb1054 | 19 | |
icyzkungz | 0:e4727bcb1054 | 20 | //Set |
icyzkungz | 0:e4727bcb1054 | 21 | void setWeight(int,float); |
icyzkungz | 0:e4727bcb1054 | 22 | |
icyzkungz | 0:e4727bcb1054 | 23 | //void getSensorData(float*); |
icyzkungz | 0:e4727bcb1054 | 24 | |
icyzkungz | 0:e4727bcb1054 | 25 | |
icyzkungz | 0:e4727bcb1054 | 26 | private: |
icyzkungz | 0:e4727bcb1054 | 27 | float SensorData[10]; |
icyzkungz | 0:e4727bcb1054 | 28 | float weight[10]; |
icyzkungz | 0:e4727bcb1054 | 29 | float mean; |
icyzkungz | 0:e4727bcb1054 | 30 | float sum_weight; |
icyzkungz | 0:e4727bcb1054 | 31 | float SD; |
icyzkungz | 0:e4727bcb1054 | 32 | }; |
icyzkungz | 0:e4727bcb1054 | 33 | |
icyzkungz | 0:e4727bcb1054 | 34 | |
icyzkungz | 0:e4727bcb1054 | 35 | #endif |