Working, Clean
Dependents: ShowItv2 ShowIt_robot_control
Fork of SignalNumber by
signalnumber.h@8:9098c6b1897b, 2017-11-07 (annotated)
- Committer:
- peterknoben
- Date:
- Tue Nov 07 09:30:28 2017 +0000
- Revision:
- 8:9098c6b1897b
- Parent:
- 7:893503895342
Final version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
peterknoben | 0:5f8dee4d4b09 | 1 | #ifndef _SIGNALNUMBER_H_INCLUDED_ |
peterknoben | 0:5f8dee4d4b09 | 2 | #define _SIGNALNUMBER_H_INCLUDED_ |
peterknoben | 0:5f8dee4d4b09 | 3 | |
peterknoben | 0:5f8dee4d4b09 | 4 | #include "mbed.h" |
peterknoben | 0:5f8dee4d4b09 | 5 | |
peterknoben | 0:5f8dee4d4b09 | 6 | class SignalNumber |
peterknoben | 0:5f8dee4d4b09 | 7 | { |
peterknoben | 0:5f8dee4d4b09 | 8 | public: |
peterknoben | 0:5f8dee4d4b09 | 9 | /** |
peterknoben | 0:5f8dee4d4b09 | 10 | *Constructor |
peterknoben | 0:5f8dee4d4b09 | 11 | */ |
peterknoben | 0:5f8dee4d4b09 | 12 | SignalNumber(void); |
peterknoben | 0:5f8dee4d4b09 | 13 | |
peterknoben | 0:5f8dee4d4b09 | 14 | float calibrate(const int n, float input); |
peterknoben | 0:5f8dee4d4b09 | 15 | |
peterknoben | 4:a79f9f3a9e40 | 16 | float getmeanLeft(const int n, float input); |
peterknoben | 4:a79f9f3a9e40 | 17 | |
peterknoben | 4:a79f9f3a9e40 | 18 | float getmeanRight(const int n, float input); |
peterknoben | 4:a79f9f3a9e40 | 19 | |
peterknoben | 7:893503895342 | 20 | int getspeedLeft(const int n, const int action, float input); |
peterknoben | 0:5f8dee4d4b09 | 21 | |
peterknoben | 7:893503895342 | 22 | int getspeedRight(const int n, const int action, float input); |
peterknoben | 0:5f8dee4d4b09 | 23 | |
peterknoben | 0:5f8dee4d4b09 | 24 | |
peterknoben | 0:5f8dee4d4b09 | 25 | private: |
peterknoben | 0:5f8dee4d4b09 | 26 | |
peterknoben | 0:5f8dee4d4b09 | 27 | }; |
peterknoben | 0:5f8dee4d4b09 | 28 | #endif |