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.
Dependencies: mbed MODSERIAL filter mbed-rtos ConfigFile PID PPM FreeIMU_external_magnetometer TinyGPS
FlightController/RateController/RateController.h@0:c6a85bb2a827, 2015-03-04 (annotated)
- Committer:
- joe4465
- Date:
- Wed Mar 04 18:50:37 2015 +0000
- Revision:
- 0:c6a85bb2a827
- Child:
- 2:969dfa4f2436
New version of quadcopter software, written following OO principles
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| joe4465 | 0:c6a85bb2a827 | 1 | #include "mbed.h" |
| joe4465 | 0:c6a85bb2a827 | 2 | #include "Global.h" |
| joe4465 | 0:c6a85bb2a827 | 3 | #include "PidWrapper.h" |
| joe4465 | 0:c6a85bb2a827 | 4 | #include "ConfigFileWrapper.h" |
| joe4465 | 0:c6a85bb2a827 | 5 | |
| joe4465 | 0:c6a85bb2a827 | 6 | #ifndef RateController_H |
| joe4465 | 0:c6a85bb2a827 | 7 | #define RateController_H |
| joe4465 | 0:c6a85bb2a827 | 8 | |
| joe4465 | 0:c6a85bb2a827 | 9 | class RateController |
| joe4465 | 0:c6a85bb2a827 | 10 | { |
| joe4465 | 0:c6a85bb2a827 | 11 | public: |
| joe4465 | 0:c6a85bb2a827 | 12 | RateController(); |
| joe4465 | 0:c6a85bb2a827 | 13 | ~RateController(); |
| joe4465 | 0:c6a85bb2a827 | 14 | |
| joe4465 | 0:c6a85bb2a827 | 15 | bool initialise(Sensors& sensors, NavigationController& navigationController); |
| joe4465 | 0:c6a85bb2a827 | 16 | PidWrapper::PidOutputs compute(); |
| joe4465 | 0:c6a85bb2a827 | 17 | |
| joe4465 | 0:c6a85bb2a827 | 18 | private: |
| joe4465 | 0:c6a85bb2a827 | 19 | Sensors _sensors; |
| joe4465 | 0:c6a85bb2a827 | 20 | NavigationController _navigationController; |
| joe4465 | 0:c6a85bb2a827 | 21 | PidWrapper _yawRatePIDController; |
| joe4465 | 0:c6a85bb2a827 | 22 | PidWrapper _pitchRatePIDController; |
| joe4465 | 0:c6a85bb2a827 | 23 | PidWrapper _rollRatePIDController; |
| joe4465 | 0:c6a85bb2a827 | 24 | }; |
| joe4465 | 0:c6a85bb2a827 | 25 | |
| joe4465 | 0:c6a85bb2a827 | 26 | #endif |