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.h
- Revision:
- 4:650af94bf062
- Parent:
- 1:3f857674a290
- Child:
- 5:9a1ec02229dd
--- a/Global.h Tue Sep 29 16:03:01 2015 +0000 +++ b/Global.h Tue Sep 29 18:23:29 2015 +0000 @@ -1,26 +1,22 @@ #ifndef BIRD_CENTRAL_GLOBAL_H_ #define BIRD_CENTRAL_GLOBAL_H_ -#include <vector> -#include <algorithm> // std::copy -#include <iterator> // std::back_inserter + #include "mbed.h" class Global { - static int maxpitch; - static int minpitch; - static int maxyaw; - static int minyaw; - static float maxrudderangle; - static float minrudderangle; - static float maxelevatorangle; - static float minelevatorangle; + static double maxpitch; + static double minpitch; + static double neutralpitch; + static double maxyaw; + static double minyaw; + static double neutralyaw; + static double maxpitchdegree; static double neutralpitchdegree; static double minpitchdegree; static double neutralyawdegree; static double maxyawdegree; static double minyawdegree; - static double neutralrudderangle; - static double neutralelevatorangle; + static double trimpitch; static double trimyaw; static double inttrimpitch; @@ -44,14 +40,26 @@ static class DigitalOut led4; - static int getmaxpitch(); - static int getminpitch(); - static int getmaxyaw(); - static int getminyaw(); - static float getmaxrudderangle(); - static float getminrudderangle(); - static float getmaxelevatorangle(); - static float getminelevatorangle(); + static double getmaxpitch(); + static double getminpitch(); + static double getneutralpitch(); + static double getmaxyaw(); + static double getminyaw(); + static double getneutralyaw(); + + static void setmaxpitch(double _maxpitch); + static void setminpitch(double _minpitch); + static void setneutralpitch(double _neutralpitch); + static void setmaxyaw(double _maxyaw); + static void setminyaw(double _minyaw); + static void setneutralyaw(double _neutralyaw); + + static double getmaxpitchdegree(); + static double getneutralpitchdegree(); + static double getminpitchdegree(); + static double getmaxyawdegree(); + static double getneutralyawdegree(); + static double getminyawdegree(); static void setmaxpitchdegree(double maxpitchdegree); static void setneutralpitchdegree(double neutralpitchdegree); @@ -59,8 +67,7 @@ static void setmaxyawdegree(double maxyawdegree); static void setneutralyawdegree(double neutralyawdegree); static void setminyawdegree(double minyawdegree); - static void setneutralrudderangle(double neutralrudderangle); - static void setneutralelevatorangle(double neutralelevatorangle); + static double getpitch();