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.
Dependencies: F746_GUI F746_SAI_IO mbed
Revision 5:976ef47a7f25, committed 2018-03-20
- Comitter:
- MikamiUitOpen
- Date:
- Tue Mar 20 11:15:47 2018 +0000
- Parent:
- 4:42586a44caeb
- Commit message:
- 6
Changed in this revision
Filter/Multiplier.hpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Filter/Multiplier.hpp Sun Mar 18 00:59:56 2018 +0000 +++ b/Filter/Multiplier.hpp Tue Mar 20 11:15:47 2018 +0000 @@ -1,7 +1,7 @@ //--------------------------------------------------- // 定数乗算器 // -// 2017/09/27, Copyright (c) 2017 MIKAMI, Naoki +// 2018/03/20, Copyright (c) 2018 MIKAMI, Naoki //--------------------------------------------------- #ifndef CONST_MULTIPLY_HPP @@ -18,8 +18,8 @@ // 定数を乗算する処理の実行,戻り値は int16_t 型とすること int16_t Execute(int16_t xn) { - int16_t yn = C_*xn; - return yn; + float yn = C_*xn; + return (int16_t)yn; } private: const float C_;
--- a/main.cpp Sun Mar 18 00:59:56 2018 +0000 +++ b/main.cpp Tue Mar 20 11:15:47 2018 +0000 @@ -9,7 +9,7 @@ // F746_SAI_IO Rev.12 // mbed Rev.161 // -// 2018/03/18, Copyright (c) 2018 MIKAMI, Naoki +// 2018/03/20, Copyright (c) 2018 MIKAMI, Naoki //----------------------------------------------------------------- #include "SAI_InOut.hpp"