Chapter006_Zara_F746NG
Dependencies: F746_GUI SRF08 Array_Matrix TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG SDFileSystem_Warning_Fixed FrequencyResponseDrawer F746_SAI_IO
Diff: MyClasses_Functions/DesignerDrawer.cpp
- Revision:
- 5:3e8ca1ed31a1
- Parent:
- 3:cda40218256c
diff -r 02b9ced5f079 -r 3e8ca1ed31a1 MyClasses_Functions/DesignerDrawer.cpp --- a/MyClasses_Functions/DesignerDrawer.cpp Mon Apr 25 13:01:25 2016 +0000 +++ b/MyClasses_Functions/DesignerDrawer.cpp Sun May 01 02:45:17 2016 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // IIR フィルタを双一次 z 変換で設計し,その周波数特性を描画するためのクラス // -// 2016/04/25, Copyright (c) 2016 MIKAMI, Naoki +// 2016/05/01, Copyright (c) 2016 MIKAMI, Naoki //------------------------------------------------------------------------------ #include "DesignerDrawer.hpp" @@ -10,11 +10,11 @@ { // Constructor DesignerDrawer::DesignerDrawer(uint16_t x0, uint16_t y0, - uint16_t db1, int fs, int order, + float db1, int fs, int order, float fc, uint16_t fL, uint16_t fH, BilinearDesign::Type lpHp) : lcd_(GuiBase::GetLcdPtr()), ts_(GuiBase::GetTsPtr()), - X0_(x0), Y0_(y0), DB1_(db1), ORDER_(order), + X0_(x0), Y0_(y0), ORDER_(order), CURSOR_Y0_(y0+1-db1*60), CURSOR_LENGTH_(db1*60-1), LOWER_F_(fL), HIGHER_F_(fH), CURSOR_COLOR_(0xFFE000D0), CURSOR_TOUCHED_COLOR_(0xFFFF80FF) @@ -33,7 +33,7 @@ frqResp_->SetParams(ORDER_, g0_, ck_); // 周波数特性の描画 - lblFrq_ = new NumericLabel<int>(110, 30); + lblFrq_ = new NumericLabel<int>(110, 38); DrawResponse(); tp_ = new TouchPanelDetectorX( drawerObj_->X(LOWER_F_), drawerObj_->X(HIGHER_F_), @@ -131,3 +131,4 @@ return ((int)(f/100.0f + 0.5f))*100; } } +