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