- 3.0.2 models module.
quadModelParameters.hpp
Go to the documentation of this file.
1 /**********************************************************************************************************************
2 This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich
3 Licensed under the BSD-2 license (see LICENSE file in main directory)
4 **********************************************************************************************************************/
5 
6 #pragma once
7 
8 #include <Eigen/Dense>
9 
10 namespace ct {
11 namespace models {
12 namespace quadrotor {
13 
14 const double pi = 3.14159265;
15 
16 // mass / inertia
17 const double mQ = 0.546; // mass of quadcopter [ kg ]
18 const double Thxxyy = 2.32e-3; // moment of inertia around x,y [ kg*m^2 ]
19 const double Thzz = 3e-4; // moment of inertia around z [ kg*m^2 ]
20 const double arm_len = 0.175; // length of quadcopter arm [ m ]
21 const double grav_const = 9.81; // gravitational constant [ m/s^2 ]
22 
23 const double f_hover = mQ * grav_const;
24 
25 // Thrust parameters
26 const double kF = 6.17092e-8 * 3600 / (2 * pi * 2 * pi); // rotor thrust coefficient [ N/rad^2 ]
27 const double kM = 1.3167e-9 * 3600 / (2 * pi * 2 * pi); // rotor moment coefficient [ Nm/rad^2]
28 const double wmax = 7800.0 * 2 * pi / 60; // maximum rotor speed [ rad/s ]
29 const double wmin = 1200.0 * 2 * pi / 60; // minimum rotor speed [ rad/s ]
30 const double Fsat_min = kF * wmin * wmin;
31 const double Fsat_max = kF * wmax * wmax;
32 
33 const Eigen::Vector4d kFs(kF, kF, kF, kF);
34 const Eigen::Vector4d kMs(kM, kM, kM, kM);
35 
36 } // namespace quadrotor
37 } // namespace models
38 } // namespace ct
const Eigen::Vector4d kFs(kF, kF, kF, kF)
const double Fsat_min
Definition: quadModelParameters.hpp:30
const double f_hover
Definition: quadModelParameters.hpp:23
const double kF
Definition: quadModelParameters.hpp:26
const double Thzz
Definition: quadModelParameters.hpp:19
const double wmin
Definition: quadModelParameters.hpp:29
const double kM
Definition: quadModelParameters.hpp:27
const double wmax
Definition: quadModelParameters.hpp:28
const double Thxxyy
Definition: quadModelParameters.hpp:18
const double mQ
Definition: quadModelParameters.hpp:17
const double pi
Definition: quadModelParameters.hpp:14
const double Fsat_max
Definition: quadModelParameters.hpp:31
const double grav_const
Definition: quadModelParameters.hpp:21
const double arm_len
Definition: quadModelParameters.hpp:20
const Eigen::Vector4d kMs(kM, kM, kM, kM)