kubtss / Mbed 2 deprecated BIRD2017

Dependencies:   mbed-rtos mbed

Committer:
shimogamo
Date:
Tue Sep 29 18:23:29 2015 +0000
Revision:
4:650af94bf062
Parent:
1:3f857674a290
Child:
5:9a1ec02229dd
angle?????Global??????????????????????

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 4:650af94bf062 19
shimogamo 0:2a15bd367891 20 static double trimpitch;
shimogamo 0:2a15bd367891 21 static double trimyaw;
shimogamo 0:2a15bd367891 22 static double inttrimpitch;
shimogamo 0:2a15bd367891 23 static double inttrimyaw;
shimogamo 1:3f857674a290 24 static double pitch;
shimogamo 1:3f857674a290 25 static double yaw;
shimogamo 1:3f857674a290 26 static double airspeed;
shimogamo 1:3f857674a290 27 static double cadence;
shimogamo 1:3f857674a290 28 static double altitude;
shimogamo 1:3f857674a290 29
shimogamo 0:2a15bd367891 30 public :
shimogamo 0:2a15bd367891 31 static const int rotateperrevolutions=12;
shimogamo 0:2a15bd367891 32 static const int rotateperrevolutions_onepulse=1;
shimogamo 1:3f857674a290 33
shimogamo 1:3f857674a290 34 static class Ticker ticker;
shimogamo 1:3f857674a290 35 static class Timer timer;
shimogamo 1:3f857674a290 36 static class DigitalIn initializeswitch;
shimogamo 1:3f857674a290 37 static class DigitalOut led1;
shimogamo 1:3f857674a290 38 static class DigitalOut led2;
shimogamo 1:3f857674a290 39 static class DigitalOut led3;
shimogamo 1:3f857674a290 40 static class DigitalOut led4;
shimogamo 0:2a15bd367891 41
shimogamo 1:3f857674a290 42
shimogamo 4:650af94bf062 43 static double getmaxpitch();
shimogamo 4:650af94bf062 44 static double getminpitch();
shimogamo 4:650af94bf062 45 static double getneutralpitch();
shimogamo 4:650af94bf062 46 static double getmaxyaw();
shimogamo 4:650af94bf062 47 static double getminyaw();
shimogamo 4:650af94bf062 48 static double getneutralyaw();
shimogamo 4:650af94bf062 49
shimogamo 4:650af94bf062 50 static void setmaxpitch(double _maxpitch);
shimogamo 4:650af94bf062 51 static void setminpitch(double _minpitch);
shimogamo 4:650af94bf062 52 static void setneutralpitch(double _neutralpitch);
shimogamo 4:650af94bf062 53 static void setmaxyaw(double _maxyaw);
shimogamo 4:650af94bf062 54 static void setminyaw(double _minyaw);
shimogamo 4:650af94bf062 55 static void setneutralyaw(double _neutralyaw);
shimogamo 4:650af94bf062 56
shimogamo 4:650af94bf062 57 static double getmaxpitchdegree();
shimogamo 4:650af94bf062 58 static double getneutralpitchdegree();
shimogamo 4:650af94bf062 59 static double getminpitchdegree();
shimogamo 4:650af94bf062 60 static double getmaxyawdegree();
shimogamo 4:650af94bf062 61 static double getneutralyawdegree();
shimogamo 4:650af94bf062 62 static double getminyawdegree();
shimogamo 1:3f857674a290 63
shimogamo 0:2a15bd367891 64 static void setmaxpitchdegree(double maxpitchdegree);
shimogamo 0:2a15bd367891 65 static void setneutralpitchdegree(double neutralpitchdegree);
shimogamo 0:2a15bd367891 66 static void setminpitchdegree(double minpitchdegree);
shimogamo 0:2a15bd367891 67 static void setmaxyawdegree(double maxyawdegree);
shimogamo 0:2a15bd367891 68 static void setneutralyawdegree(double neutralyawdegree);
shimogamo 0:2a15bd367891 69 static void setminyawdegree(double minyawdegree);
shimogamo 4:650af94bf062 70
shimogamo 1:3f857674a290 71
shimogamo 1:3f857674a290 72
shimogamo 0:2a15bd367891 73 static double getpitch();
shimogamo 0:2a15bd367891 74 static double getyaw();
shimogamo 0:2a15bd367891 75 static double gettrimpitch();
shimogamo 0:2a15bd367891 76 static double gettrimyaw();
shimogamo 0:2a15bd367891 77 static double getinttrimpitch();
shimogamo 0:2a15bd367891 78 static double getinttrimyaw();
shimogamo 0:2a15bd367891 79 static double getairspeed();
shimogamo 0:2a15bd367891 80 static double getcadence();
shimogamo 0:2a15bd367891 81 static double getaltitude();
shimogamo 1:3f857674a290 82
shimogamo 1:3f857674a290 83 static void setpitch(double _pitch);
shimogamo 1:3f857674a290 84 static void settrimpitch(double _trimpitch);
shimogamo 1:3f857674a290 85 static void setinttrimpitch(double _inttrimpitch);
shimogamo 1:3f857674a290 86 static void setyaw(double _yaw);
shimogamo 1:3f857674a290 87 static void settrimyaw(double _trimyaw);
shimogamo 1:3f857674a290 88 static void setinttrimyaw(double _inttrimyaw);
shimogamo 1:3f857674a290 89 static void setairspeed(double _airspeed);
shimogamo 1:3f857674a290 90 static void setcadence(double _cadence);
shimogamo 1:3f857674a290 91 static void setaltitude(double _altitude);
shimogamo 0:2a15bd367891 92 };
shimogamo 0:2a15bd367891 93
shimogamo 0:2a15bd367891 94 #endif