quadcopter.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020-2023 RaccoonLab.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Author: Dmitry Ponomarev <ponomarevda96@gmail.com>
17  */
18 
19 #ifndef SRC_DYNAMICS_QUADCOPTER_QUADCOPTER_HPP
20 #define SRC_DYNAMICS_QUADCOPTER_QUADCOPTER_HPP
21 
22 #include "uavDynamicsSimBase.hpp"
23 #include "multirotor.hpp"
24 
26 public:
28  number_of_motors = 4;
29  }
30  ~QuadcopterDynamics() final = default;
31 
32  void initStaticMotorTransform(double momentArm) override;
33  std::vector<double> mapCmdActuator(std::vector<double> cmd) const override;
34 };
35 
36 #endif // SRC_DYNAMICS_QUADCOPTER_QUADCOPTER_HPP
MultirotorDynamics::number_of_motors
uint8_t number_of_motors
Definition: multirotor.hpp:56
QuadcopterDynamics::~QuadcopterDynamics
~QuadcopterDynamics() final=default
QuadcopterDynamics
Definition: quadcopter.hpp:25
uavDynamicsSimBase.hpp
QuadcopterDynamics::mapCmdActuator
std::vector< double > mapCmdActuator(std::vector< double > cmd) const override
Convert actuator indexes from PX4 notation to internal Flightgoggles notation.
Definition: quadcopter.cpp:41
MultirotorDynamics
Definition: multirotor.hpp:25
std
QuadcopterDynamics::QuadcopterDynamics
QuadcopterDynamics()
Definition: quadcopter.hpp:27
QuadcopterDynamics::initStaticMotorTransform
void initStaticMotorTransform(double momentArm) override
Set motor frames.
Definition: quadcopter.cpp:25
multirotor.hpp


inno_vtol_dynamics
Author(s): Roman Fedorenko, Dmitry Ponomarev, Ezra Tal, Winter Guerra
autogenerated on Mon Dec 9 2024 03:13:35