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
- Committer:
- shimogamo
- Date:
- 2015-09-29
- Revision:
- 4:650af94bf062
- Parent:
- 1:3f857674a290
- Child:
- 5:9a1ec02229dd
File content as of revision 4:650af94bf062:
#ifndef BIRD_CENTRAL_GLOBAL_H_ #define BIRD_CENTRAL_GLOBAL_H_ #include "mbed.h" class Global { static double maxpitch; static double minpitch; static double neutralpitch; static double maxyaw; static double minyaw; static double neutralyaw; static double maxpitchdegree; static double neutralpitchdegree; static double minpitchdegree; static double neutralyawdegree; static double maxyawdegree; static double minyawdegree; static double trimpitch; static double trimyaw; static double inttrimpitch; static double inttrimyaw; static double pitch; static double yaw; static double airspeed; static double cadence; static double altitude; public : static const int rotateperrevolutions=12; static const int rotateperrevolutions_onepulse=1; static class Ticker ticker; static class Timer timer; static class DigitalIn initializeswitch; static class DigitalOut led1; static class DigitalOut led2; static class DigitalOut led3; static class DigitalOut led4; static double getmaxpitch(); static double getminpitch(); static double getneutralpitch(); static double getmaxyaw(); static double getminyaw(); static double getneutralyaw(); static void setmaxpitch(double _maxpitch); static void setminpitch(double _minpitch); static void setneutralpitch(double _neutralpitch); static void setmaxyaw(double _maxyaw); static void setminyaw(double _minyaw); static void setneutralyaw(double _neutralyaw); static double getmaxpitchdegree(); static double getneutralpitchdegree(); static double getminpitchdegree(); static double getmaxyawdegree(); static double getneutralyawdegree(); static double getminyawdegree(); static void setmaxpitchdegree(double maxpitchdegree); static void setneutralpitchdegree(double neutralpitchdegree); static void setminpitchdegree(double minpitchdegree); static void setmaxyawdegree(double maxyawdegree); static void setneutralyawdegree(double neutralyawdegree); static void setminyawdegree(double minyawdegree); static double getpitch(); static double getyaw(); static double gettrimpitch(); static double gettrimyaw(); static double getinttrimpitch(); static double getinttrimyaw(); static double getairspeed(); static double getcadence(); static double getaltitude(); static void setpitch(double _pitch); static void settrimpitch(double _trimpitch); static void setinttrimpitch(double _inttrimpitch); static void setyaw(double _yaw); static void settrimyaw(double _trimyaw); static void setinttrimyaw(double _inttrimyaw); static void setairspeed(double _airspeed); static void setcadence(double _cadence); static void setaltitude(double _altitude); }; #endif