Library containing Crazyflie 2.0 controller classes: - Attitude estimator - Horizontal estimator - Vertical estimator - Attitude controller - Horizontal controller - Vertical controller - Mixer
Parameters/Parameters.h@5:b9947e3d20cf, 2018-09-27 (annotated)
- Committer:
- fbob
- Date:
- Thu Sep 27 13:51:54 2018 +0000
- Revision:
- 5:b9947e3d20cf
- Child:
- 6:3188b00263e8
Included parameters.h;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fbob | 5:b9947e3d20cf | 1 | #ifndef Parameters_h |
fbob | 5:b9947e3d20cf | 2 | #define Parameters_h |
fbob | 5:b9947e3d20cf | 3 | |
fbob | 5:b9947e3d20cf | 4 | // Motor constants |
fbob | 5:b9947e3d20cf | 5 | const float alpha = 1.16e-07f; |
fbob | 5:b9947e3d20cf | 6 | const float beta = 7.149e-10f; |
fbob | 5:b9947e3d20cf | 7 | |
fbob | 5:b9947e3d20cf | 8 | // Propeller constants |
fbob | 5:b9947e3d20cf | 9 | const float kl = 1.726e-08f; // N.s^2/rad^2 |
fbob | 5:b9947e3d20cf | 10 | const float kd = 1.426e-10f; // N.m.s^2/rad^2 |
fbob | 5:b9947e3d20cf | 11 | |
fbob | 5:b9947e3d20cf | 12 | // Quadcopter dimensions |
fbob | 5:b9947e3d20cf | 13 | const float l = 0.033f; // m |
fbob | 5:b9947e3d20cf | 14 | const float m = 0.030f; // kg |
fbob | 5:b9947e3d20cf | 15 | const float I_xx = 16.0e-6f; // kg.m^2 |
fbob | 5:b9947e3d20cf | 16 | const float I_yy = 16.0e-6f; // kg.m^2 |
fbob | 5:b9947e3d20cf | 17 | const float I_zz = 29.0e-6f; // kg.m^2 |
fbob | 5:b9947e3d20cf | 18 | |
fbob | 5:b9947e3d20cf | 19 | // Attitude estimator parameters |
fbob | 5:b9947e3d20cf | 20 | const float dt_att = 0.005f; // s |
fbob | 5:b9947e3d20cf | 21 | const float rho = 0.02f; |
fbob | 5:b9947e3d20cf | 22 | |
fbob | 5:b9947e3d20cf | 23 | // Attitude controller time constants |
fbob | 5:b9947e3d20cf | 24 | const float T_phi = 0.2f; // s |
fbob | 5:b9947e3d20cf | 25 | const float T_theta = 0.2f; // s |
fbob | 5:b9947e3d20cf | 26 | const float T_psi = 0.2f; // s |
fbob | 5:b9947e3d20cf | 27 | const float T_p = 0.04f; // s |
fbob | 5:b9947e3d20cf | 28 | const float T_q = 0.04f; // s |
fbob | 5:b9947e3d20cf | 29 | const float T_r = 0.1f; // s |
fbob | 5:b9947e3d20cf | 30 | |
fbob | 5:b9947e3d20cf | 31 | #endif |