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:
- 10:0a4bf8c82493
- Parent:
- 9:d1fc0805ec7d
- Child:
- 12:8e39bb45c61c
--- a/Control/ControllerManager.cpp Wed Oct 14 13:44:32 2015 +0000 +++ b/Control/ControllerManager.cpp Thu Nov 26 08:14:41 2015 +0000 @@ -62,8 +62,6 @@ Global::setyaw(getyaw()); Global::setpitchdegree(controller.getV());//生データであることに注意 Global::setyawdegree(controller.getH());//生データであることに注意 -// printf("pitch=%f yaw=%f\n", getpitch(), getyaw()); -// printf("pitchdeg(raw)=%f yawdeg(raw)=%f\n", getpitchdegree(), getyawdegree()); } @@ -149,9 +147,11 @@ //ここでtrim値を加える double ControllerManager::getpitch(){ + //printf("pitchratio=%f doublepitch=%f gettrimpitch=%f\n", pitchratio(), doublepitch(pitchratio()), Global::gettrimpitch()); return clamp(doublepitch(pitchratio())+Global::gettrimpitch(), minpitch, maxpitch); } double ControllerManager::getyaw(){ + //printf("yawratio=%f doubleyaw=%f gettrimyaw=%f\n", yawratio(), doubleyaw(yawratio()), Global::gettrimyaw()); return clamp(doubleyaw(yawratio())+Global::gettrimyaw(), minyaw, maxyaw); }