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: Global.cpp
- Revision:
- 40:fa6c39f853f1
- Parent:
- 39:0d71fbd9f821
- Child:
- 41:013df90be273
diff -r 0d71fbd9f821 -r fa6c39f853f1 Global.cpp --- a/Global.cpp Wed Mar 22 07:03:00 2017 +0000 +++ b/Global.cpp Sat Mar 25 06:57:43 2017 +0000 @@ -69,13 +69,13 @@ //----------------どこからでも使えるled,スイッチ,タイマーの一括管理----------------------------- Timer Global::timer; -DigitalOut Global::led(LED2); +//DigitalOut Global::led(LED2); //ここでINIT.csvファイルが読み込まれる void Global::initialize(){ timer.start(); memory.reset(); - //fileread(); + fileread(); } //INITファイルの読み込み @@ -105,13 +105,14 @@ setmaxyawplayratio(param[14]); setminyawplayratio(param[15]); settrimpitchrate(param[16]); + + pc.printf("read\n"); } //INITファイルの書き込み void Global::filewrite(){ - // pc.printf("push"); vector<double> param; - /* + param.push_back(getneutralpitch()); param.push_back(getmaxpitch()); param.push_back(getminpitch()); @@ -131,10 +132,10 @@ param.push_back(getmaxyawplayratio()); param.push_back(getminyawplayratio()); param.push_back(gettrimpitchrate()); - */ + /* for(int i=0;i<17;i++){ param.push_back(i*0.1); - } + }*/ memory.writedouble(0x0,param); pc.printf("written\n"); }