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: Control/ControllerManager.cpp
- Revision:
- 26:a53c3208ac35
- Parent:
- 20:6fbf1f50abda
--- a/Control/ControllerManager.cpp Sat Jul 23 00:09:05 2016 +0000 +++ b/Control/ControllerManager.cpp Sat Jul 23 00:50:47 2016 +0000 @@ -41,6 +41,7 @@ void ControllerManager::update(){ + //updateのたびにめったに変化しないmax,min,neutralの値をglobalから読み込むの非効率な気がする。もっといいやりかたがあるはず... maxpitch = Global::getmaxpitch(); minpitch = Global::getminpitch(); maxyaw = Global::getmaxyaw(); @@ -94,6 +95,7 @@ } } +//pitchratioに遊びの追加 double ControllerManager::pitchratioplayed(double pitchratio){ if(pitchratio > maxpitchplayratio){ return (pitchratio - maxpitchplayratio) / (1.0 - maxpitchplayratio);