albatross
/
ControlMain2017
2017年度の製作を開始します
Fork of Control_Main_Full_20160608 by
Diff: InputHandler/InputHandler.h
- Branch:
- ?????
- Revision:
- 52:a9d23be503c6
- Parent:
- 49:87af91607b46
- Child:
- 53:947eff37d01d
--- a/InputHandler/InputHandler.h Wed Jun 07 14:14:09 2017 +0000 +++ b/InputHandler/InputHandler.h Sat Jun 10 07:43:58 2017 +0000 @@ -3,7 +3,7 @@ #include "mbed.h" -#define NEUWIDTH 0.2 +#define NEUWIDTH 0.22 #define NORMMAX 1.0 #define NORMMIN -1.0 #define WIDENRATE NORMMAX/(NORMMAX - NEUWIDTH) @@ -31,16 +31,19 @@ //シフトした後の値を-1.0~1.0へと正規化するための比率を取得します void GetNormRate(); + + //上下の幅を合わせます + float GetUpperAndLowerRate(); //値を-1.0~1.0へと正規化します - void NormValue(double *input); + void NormValue(float *input); //初期値の分、入力値を0に寄せて、拡大します。 - void WidenNeutral(double* input) ; + void WidenNeutral(float* input) ; - double CutInvalidInput(double input); + float CutInvalidInput(float input); //上記のメソッドを使用したループ内処理 - double Processing(double input); + float Processing(float input); }; #endif \ No newline at end of file