Library containing Crazyflie 2.0 controller classes: - Attitude estimator - Horizontal estimator - Vertical estimator - Attitude controller - Horizontal controller - Vertical controller - Mixer
VerticalController/VerticalController.h@15:155ca63b7884, 2018-10-03 (annotated)
- Committer:
- fbob
- Date:
- Wed Oct 03 22:12:38 2018 +0000
- Revision:
- 15:155ca63b7884
- Parent:
- 7:220ce3839be8
- Child:
- 16:54d2f299e404
10 fucking seconds flight!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fbob | 7:220ce3839be8 | 1 | #ifndef VerticalController_h |
fbob | 7:220ce3839be8 | 2 | #define VerticalController_h |
fbob | 7:220ce3839be8 | 3 | |
fbob | 7:220ce3839be8 | 4 | #include "mbed.h" |
fbob | 7:220ce3839be8 | 5 | #include "Parameters.h" |
fbob | 7:220ce3839be8 | 6 | |
fbob | 7:220ce3839be8 | 7 | class VerticalController |
fbob | 7:220ce3839be8 | 8 | { |
fbob | 7:220ce3839be8 | 9 | public: |
fbob | 7:220ce3839be8 | 10 | // Class constructor |
fbob | 7:220ce3839be8 | 11 | VerticalController(); |
fbob | 15:155ca63b7884 | 12 | /*// Control thrust force (N) given vertical position (m) and velocity (m/s) |
fbob | 15:155ca63b7884 | 13 | void control(float z_r, float z, float w);*/ |
fbob | 7:220ce3839be8 | 14 | // Control thrust force (N) given vertical position (m) and velocity (m/s) |
fbob | 15:155ca63b7884 | 15 | void control(float z_r, float z, float w, float K_z_new, float K_w_new); |
fbob | 7:220ce3839be8 | 16 | // Thrust force (N) |
fbob | 7:220ce3839be8 | 17 | float f_t; |
fbob | 7:220ce3839be8 | 18 | }; |
fbob | 7:220ce3839be8 | 19 | |
fbob | 7:220ce3839be8 | 20 | #endif |