SIM_QuadPlane.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 3 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. /*
  14. simple plane simulator class
  15. */
  16. #pragma once
  17. #include "SIM_Aircraft.h"
  18. #include "SIM_Plane.h"
  19. #include "SIM_Multicopter.h"
  20. namespace SITL {
  21. /*
  22. a very simple quadplane simulator
  23. */
  24. class QuadPlane : public Plane {
  25. public:
  26. QuadPlane(const char *frame_str);
  27. /* update model by one time step */
  28. void update(const struct sitl_input &input) override;
  29. /* static object creator */
  30. static Aircraft *create(const char *frame_str) {
  31. return new QuadPlane(frame_str);
  32. }
  33. private:
  34. Frame *frame;
  35. };
  36. } // namespace SITL