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:
- 3:e3c41153e5fe
- Parent:
- 1:3f857674a290
- Child:
- 4:650af94bf062
diff -r e0f1e8662b8c -r e3c41153e5fe Global.cpp --- a/Global.cpp Mon Sep 28 10:33:07 2015 +0000 +++ b/Global.cpp Tue Sep 29 16:03:01 2015 +0000 @@ -1,21 +1,31 @@ #include "mbed.h" #include "Global.h" -int Global::maxpitch = 10;// -int Global::minpitch = -10;// -int Global::Global::maxyaw = 10;// -int Global::minyaw = -10;// -float Global::maxrudderangle = 600.0;//係数変更でサーボ稼働幅調整 + +//トリムはGlobalで足したほうがいいかも + + +//----------------普段は変動しない変数(定数)------------------------------------------------------ +//この値を尾翼の可動角にするとデバッグがしやすくなる +int Global::maxpitch = 10; +int Global::minpitch = -10; +int Global::maxyaw = 10; +int Global::minyaw = -10; +//サーボの可動角調整 +float Global::maxrudderangle = 30.0; float Global::minrudderangle = -maxrudderangle;//別の値を入れたら非対称にしたりもできる -float Global::maxelevatorangle = 900.0;//係数変更でサーボ稼働幅調整 +float Global::maxelevatorangle = 5.0; float Global::minelevatorangle = -maxelevatorangle;//別の値を入れたら非対称にしたりもできる +double Global::neutralrudderangle; +double Global::neutralelevatorangle; +//ジョイスティックのパラメータ double Global::neutralpitchdegree; double Global::neutralyawdegree; double Global::maxpitchdegree; double Global::minpitchdegree; double Global::maxyawdegree; double Global::minyawdegree; -double Global::neutralrudderangle; -double Global::neutralelevatorangle; + +//----------------周期的に変動する変数------------------------------------------------------ double Global::trimpitch; double Global::trimyaw; double Global::inttrimpitch;