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:
- 34:770a6bbb4d63
- Parent:
- 33:d939479e7b13
- Child:
- 35:63ccdae58da4
--- a/Global.cpp Wed Mar 01 08:05:52 2017 +0000 +++ b/Global.cpp Wed Mar 01 14:34:27 2017 +0000 @@ -5,7 +5,6 @@ //クラスじゃなくてnamespaceのほうが綺麗にかけるかもね - Queue<char, 20> Global::initqueue; //----------------普段は変動しない変数------------------------------------------------------ //サーボのパラメータ(角度(度数法)で設定)max,minはニュートラルを基準にしている @@ -65,17 +64,17 @@ //----------------どこからでも使えるled,スイッチ,タイマーの一括管理----------------------------- Timer Global::timer; -DigitalOut Global::led[] = {LED1,LED2,LED3,LED4}; -LocalFileSystem Global::local("local"); +DigitalOut Global::led(LED2); +//LocalFileSystem Global::local("local"); //ここでINIT.csvファイルが読み込まれる void Global::initialize(){ timer.start(); - fileread(); + //fileread(); } //INITファイルの読み込み -void Global::fileread(){ +/*void Global::fileread(){ float a, b, c, d, e, f; FILE* fp = fopen("/local/init.csv", "r"); @@ -137,7 +136,7 @@ gettrimpitchrate()); fclose(fp); -} +}*/ //init等で更新される変数