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: Init.cpp
- Revision:
- 21:b1419813f2d4
- Parent:
- 17:887cfe1d309f
- Child:
- 22:c85649ff834b
--- a/Init.cpp Mon May 30 07:19:34 2016 +0000
+++ b/Init.cpp Sun Jun 19 12:53:16 2016 +0000
@@ -79,17 +79,17 @@
void Init::setting(std::string command){
if(command == "eleneu"){
- Global::setneutralpitch(Global::getpitch());
+ Global::setneutralpitch(Global::getpitch()+Global::getneutralpitch());
}else if(command == "elemax"){
- Global::setmaxpitch(Global::getpitch());
+ Global::setmaxpitch(Global::getpitch()+Global::getneutralpitch());
}else if(command == "elemin"){
- Global::setminpitch(Global::getpitch());
+ Global::setminpitch(Global::getpitch()+Global::getneutralpitch());
}else if(command == "rudneu"){
- Global::setneutralyaw(Global::getyaw());
+ Global::setneutralyaw(Global::getyaw()+Global::getneutralyaw());
}else if(command == "rudmax"){
- Global::setmaxyaw(Global::getyaw());
+ Global::setmaxyaw(Global::getyaw()+Global::getneutralyaw());
}else if(command == "rudmin"){
- Global::setminyaw(Global::getyaw());
+ Global::setminyaw(Global::getyaw()+Global::getneutralyaw());
}else if(command == "eleneudeg"){
Global::setneutralpitchdegree(Global::getpitchdegree());