kubtss / Mbed 2 deprecated BIRD2017

Dependencies:   mbed-rtos mbed

Committer:
shimogamo
Date:
Sat Oct 10 20:16:31 2015 +0000
Revision:
6:0d9fa7152934
Parent:
5:9a1ec02229dd
Child:
8:ca92cb674004
??????????????csv????????????????????????????????????????????

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