Joseph Roberts / Mbed 2 deprecated Quadcopter_mk2

Dependencies:   mbed MODSERIAL filter mbed-rtos ConfigFile PID PPM FreeIMU_external_magnetometer TinyGPS

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?

UserRevisionLine numberNew 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