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