long to float variables
Fork of reScale by
reScale.h@2:1715e312322b, 2018-05-16 (annotated)
- Committer:
- Marcelocostanzo
- Date:
- Wed May 16 19:48:12 2018 +0000
- Revision:
- 2:1715e312322b
- Parent:
- 0:04d95412bcd3
funcionando
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
c0ax | 0:04d95412bcd3 | 1 | #include "mbed.h" |
c0ax | 0:04d95412bcd3 | 2 | |
c0ax | 0:04d95412bcd3 | 3 | class reScale { |
c0ax | 0:04d95412bcd3 | 4 | public: |
Marcelocostanzo | 2:1715e312322b | 5 | reScale(float in_min, float in_max, float out_min, float out_max); |
c0ax | 0:04d95412bcd3 | 6 | |
Marcelocostanzo | 2:1715e312322b | 7 | float from(float value); |
c0ax | 0:04d95412bcd3 | 8 | protected: |
Marcelocostanzo | 2:1715e312322b | 9 | float _inMin ,_inMax ,_outMin ,_outMax ; |
c0ax | 0:04d95412bcd3 | 10 | }; |