Roman Krejci
/
dipl_prace_v2
Servo control
angle.h@0:79ed3a6c9ccc, 2015-02-10 (annotated)
- Committer:
- romankrej
- Date:
- Tue Feb 10 14:31:40 2015 +0000
- Revision:
- 0:79ed3a6c9ccc
version 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
romankrej | 0:79ed3a6c9ccc | 1 | #ifndef _ANGLE_H |
romankrej | 0:79ed3a6c9ccc | 2 | #define _ANGLE_H |
romankrej | 0:79ed3a6c9ccc | 3 | extern char i; |
romankrej | 0:79ed3a6c9ccc | 4 | |
romankrej | 0:79ed3a6c9ccc | 5 | class IRsensor { |
romankrej | 0:79ed3a6c9ccc | 6 | |
romankrej | 0:79ed3a6c9ccc | 7 | AnalogIn IRsens; |
romankrej | 0:79ed3a6c9ccc | 8 | float phi_new; |
romankrej | 0:79ed3a6c9ccc | 9 | float s_phi[8]; |
romankrej | 0:79ed3a6c9ccc | 10 | |
romankrej | 0:79ed3a6c9ccc | 11 | public: |
romankrej | 0:79ed3a6c9ccc | 12 | IRsensor(PinName IRpin); |
romankrej | 0:79ed3a6c9ccc | 13 | float get_angle(void); |
romankrej | 0:79ed3a6c9ccc | 14 | }; |
romankrej | 0:79ed3a6c9ccc | 15 | |
romankrej | 0:79ed3a6c9ccc | 16 | #endif |