Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: LinearCharacteristics.h
- Revision:
- 0:d784b08f51ff
- Child:
- 2:0f646bde6074
diff -r 000000000000 -r d784b08f51ff LinearCharacteristics.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LinearCharacteristics.h Fri Sep 28 12:42:32 2018 +0000
@@ -0,0 +1,30 @@
+// Linear Characteristics for different purposes (map Voltage to acc etc.)
+
+
+#ifndef LINEAR_CHARACTERISTICS_H_
+#define LINEAR_CHARACTERISTICS_H_
+
+
+class LinearCharacteristics{
+ public:
+ LinearCharacteristics(float, float);
+ LinearCharacteristics(float, float, float, float);
+ LinearCharacteristics(float, float, float, float, float, float);
+ float evaluate(float);
+ float operator()(float x){
+ return evaluate(x);
+ }
+ //...
+ virtual ~LinearCharacteristics();
+ // here: the calculation function
+
+ private:
+ // here: private functions and values...
+ float gain;
+ float offset;
+ float ulim;
+ float llim;
+};
+
+
+#endif // LINEAR_CHARACTERISTICS_H_
\ No newline at end of file