San Yune / Mbed 2 deprecated Chapter003_TRobot

Dependencies:   F746_GUI Array_Matrix TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG SDFileSystem_Warning_Fixed FrequencyResponseDrawer F746_SAI_IO

Revision:
3:cda40218256c
Parent:
2:2478e7a8e8d5
Child:
5:3e8ca1ed31a1
diff -r 2478e7a8e8d5 -r cda40218256c MyClasses_Functions/FrquencyResponseDrawer.cpp
--- a/MyClasses_Functions/FrquencyResponseDrawer.cpp	Mon Apr 25 00:49:09 2016 +0000
+++ b/MyClasses_Functions/FrquencyResponseDrawer.cpp	Mon Apr 25 12:50:20 2016 +0000
@@ -68,7 +68,7 @@
     }
 
     // 周波数特性のグラフの描画
-    void FrqRespDrawer::DrawGraph(FrequencyResponse &frqResp, uint32_t color)
+    void FrqRespDrawer::DrawGraph(FrequencyResponse *frqResp, uint32_t color)
     {
         lcd_->SetTextColor(color);
         uint16_t width = X(MAX_) - X(MIN_);   
@@ -79,7 +79,7 @@
         {
             float frq = PosToFrq(n+ORGX_);
             uint16_t x2 = X(frq);
-            float absHz = frqResp.AbsH_z(exp(Complex(0, pi2FsM*frq)));
+            float absHz = frqResp->AbsH_z(exp(Complex(0, pi2FsM*frq)));
             float dB = (absHz > 0.001f) ? 20.0f*log10f(absHz) : MIN_DB_;
             uint16_t y2 = ORGY_ - Round((dB - MIN_DB_)*DB1_);
             if (y2 > ORGY_) y2 = ORGY_;
@@ -101,4 +101,3 @@
         lcd_->FillRect(ORGX_, ORGY_- height, X(MAX_)-X(MIN_)+1, height+1);
     }
 }
-