kubtss / Mbed 2 deprecated BIRD2017

Dependencies:   mbed-rtos mbed

Committer:
shimogamo
Date:
Tue Oct 13 13:10:21 2015 +0000
Revision:
8:ca92cb674004
Parent:
6:0d9fa7152934
Child:
9:d1fc0805ec7d
play????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shimogamo 0:2a15bd367891 1 #ifndef BIRD_CENTRAL_GLOBAL_H_
shimogamo 0:2a15bd367891 2 #define BIRD_CENTRAL_GLOBAL_H_
shimogamo 4:650af94bf062 3
shimogamo 0:2a15bd367891 4 #include "mbed.h"
shimogamo 0:2a15bd367891 5 class Global {
shimogamo 4:650af94bf062 6 static double maxpitch;
shimogamo 4:650af94bf062 7 static double minpitch;
shimogamo 4:650af94bf062 8 static double neutralpitch;
shimogamo 4:650af94bf062 9 static double maxyaw;
shimogamo 4:650af94bf062 10 static double minyaw;
shimogamo 4:650af94bf062 11 static double neutralyaw;
shimogamo 4:650af94bf062 12
shimogamo 0:2a15bd367891 13 static double maxpitchdegree;
shimogamo 0:2a15bd367891 14 static double neutralpitchdegree;
shimogamo 0:2a15bd367891 15 static double minpitchdegree;
shimogamo 0:2a15bd367891 16 static double neutralyawdegree;
shimogamo 0:2a15bd367891 17 static double maxyawdegree;
shimogamo 0:2a15bd367891 18 static double minyawdegree;
shimogamo 8:ca92cb674004 19
shimogamo 8:ca92cb674004 20 static double maxpitchplayratio;
shimogamo 8:ca92cb674004 21 static double minpitchplayratio;
shimogamo 8:ca92cb674004 22 static double maxyawplayratio;
shimogamo 8:ca92cb674004 23 static double minyawplayratio;
shimogamo 4:650af94bf062 24
shimogamo 8:ca92cb674004 25 static double pitch;
shimogamo 8:ca92cb674004 26 static double pitchdegree;
shimogamo 0:2a15bd367891 27 static double trimpitch;
shimogamo 0:2a15bd367891 28 static double inttrimpitch;
shimogamo 8:ca92cb674004 29 static double yaw;
shimogamo 8:ca92cb674004 30 static double yawdegree;
shimogamo 8:ca92cb674004 31 static double trimyaw;
shimogamo 0:2a15bd367891 32 static double inttrimyaw;
shimogamo 1:3f857674a290 33 static double airspeed;
shimogamo 1:3f857674a290 34 static double cadence;
shimogamo 1:3f857674a290 35 static double altitude;
shimogamo 1:3f857674a290 36
shimogamo 0:2a15bd367891 37 public :
shimogamo 5:9a1ec02229dd 38 static void initialize();
shimogamo 6:0d9fa7152934 39 static void fileread();
shimogamo 6:0d9fa7152934 40 static void filewrite();
shimogamo 5:9a1ec02229dd 41
shimogamo 0:2a15bd367891 42 static const int rotateperrevolutions=12;
shimogamo 0:2a15bd367891 43 static const int rotateperrevolutions_onepulse=1;
shimogamo 1:3f857674a290 44
shimogamo 1:3f857674a290 45 static class Timer timer;
shimogamo 1:3f857674a290 46 static class DigitalIn initializeswitch;
shimogamo 1:3f857674a290 47 static class DigitalOut led1;
shimogamo 1:3f857674a290 48 static class DigitalOut led2;
shimogamo 1:3f857674a290 49 static class DigitalOut led3;
shimogamo 1:3f857674a290 50 static class DigitalOut led4;
shimogamo 6:0d9fa7152934 51 static class LocalFileSystem local;
shimogamo 0:2a15bd367891 52
shimogamo 1:3f857674a290 53
shimogamo 4:650af94bf062 54 static double getmaxpitch();
shimogamo 4:650af94bf062 55 static double getminpitch();
shimogamo 4:650af94bf062 56 static double getneutralpitch();
shimogamo 4:650af94bf062 57 static double getmaxyaw();
shimogamo 4:650af94bf062 58 static double getminyaw();
shimogamo 4:650af94bf062 59 static double getneutralyaw();
shimogamo 4:650af94bf062 60
shimogamo 4:650af94bf062 61 static void setmaxpitch(double _maxpitch);
shimogamo 4:650af94bf062 62 static void setminpitch(double _minpitch);
shimogamo 4:650af94bf062 63 static void setneutralpitch(double _neutralpitch);
shimogamo 4:650af94bf062 64 static void setmaxyaw(double _maxyaw);
shimogamo 4:650af94bf062 65 static void setminyaw(double _minyaw);
shimogamo 4:650af94bf062 66 static void setneutralyaw(double _neutralyaw);
shimogamo 4:650af94bf062 67
shimogamo 4:650af94bf062 68 static double getmaxpitchdegree();
shimogamo 4:650af94bf062 69 static double getneutralpitchdegree();
shimogamo 4:650af94bf062 70 static double getminpitchdegree();
shimogamo 4:650af94bf062 71 static double getmaxyawdegree();
shimogamo 4:650af94bf062 72 static double getneutralyawdegree();
shimogamo 4:650af94bf062 73 static double getminyawdegree();
shimogamo 1:3f857674a290 74
shimogamo 8:ca92cb674004 75 static void setmaxpitchdegree(double _maxpitchdegree);
shimogamo 8:ca92cb674004 76 static void setneutralpitchdegree(double _neutralpitchdegree);
shimogamo 8:ca92cb674004 77 static void setminpitchdegree(double _minpitchdegree);
shimogamo 8:ca92cb674004 78 static void setmaxyawdegree(double _maxyawdegree);
shimogamo 8:ca92cb674004 79 static void setneutralyawdegree(double _neutralyawdegree);
shimogamo 8:ca92cb674004 80 static void setminyawdegree(double _minyawdegree);
shimogamo 4:650af94bf062 81
shimogamo 8:ca92cb674004 82 static double getmaxpitchplayratio();
shimogamo 8:ca92cb674004 83 static double getminpitchplayratio();
shimogamo 8:ca92cb674004 84 static double getmaxyawplayratio();
shimogamo 8:ca92cb674004 85 static double getminyawplayratio();
shimogamo 8:ca92cb674004 86
shimogamo 8:ca92cb674004 87 static void setmaxpitchplayratio(double _maxpitchplayratio);
shimogamo 8:ca92cb674004 88 static void setminpitchplayratio(double _minpitchplayratio);
shimogamo 8:ca92cb674004 89 static void setmaxyawplayratio(double _maxyawplayratio);
shimogamo 8:ca92cb674004 90 static void setminyawplayratio(double _minyawplayratio);
shimogamo 1:3f857674a290 91
shimogamo 1:3f857674a290 92
shimogamo 0:2a15bd367891 93 static double getpitch();
shimogamo 8:ca92cb674004 94 static double getpitchdegree();
shimogamo 0:2a15bd367891 95 static double gettrimpitch();
shimogamo 8:ca92cb674004 96 static double getinttrimpitch();
shimogamo 8:ca92cb674004 97 static double getyaw();
shimogamo 8:ca92cb674004 98 static double getyawdegree();
shimogamo 0:2a15bd367891 99 static double gettrimyaw();
shimogamo 0:2a15bd367891 100 static double getinttrimyaw();
shimogamo 0:2a15bd367891 101 static double getairspeed();
shimogamo 0:2a15bd367891 102 static double getcadence();
shimogamo 0:2a15bd367891 103 static double getaltitude();
shimogamo 1:3f857674a290 104
shimogamo 1:3f857674a290 105 static void setpitch(double _pitch);
shimogamo 8:ca92cb674004 106 static void setpitchdegree(double _pitchdegree);
shimogamo 1:3f857674a290 107 static void settrimpitch(double _trimpitch);
shimogamo 1:3f857674a290 108 static void setinttrimpitch(double _inttrimpitch);
shimogamo 1:3f857674a290 109 static void setyaw(double _yaw);
shimogamo 8:ca92cb674004 110 static void setyawdegree(double _yawdegree);
shimogamo 1:3f857674a290 111 static void settrimyaw(double _trimyaw);
shimogamo 1:3f857674a290 112 static void setinttrimyaw(double _inttrimyaw);
shimogamo 1:3f857674a290 113 static void setairspeed(double _airspeed);
shimogamo 1:3f857674a290 114 static void setcadence(double _cadence);
shimogamo 1:3f857674a290 115 static void setaltitude(double _altitude);
shimogamo 0:2a15bd367891 116 };
shimogamo 0:2a15bd367891 117
shimogamo 0:2a15bd367891 118 #endif