From 07f34a2f74afef6e8bda04253a783138262e1cf7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 23 Feb 2024 11:16:58 +1100 Subject: [PATCH] SITL: added NoVehicle --- libraries/SITL/SIM_NoVehicle.h | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 libraries/SITL/SIM_NoVehicle.h diff --git a/libraries/SITL/SIM_NoVehicle.h b/libraries/SITL/SIM_NoVehicle.h new file mode 100644 index 0000000000..0d37392b0f --- /dev/null +++ b/libraries/SITL/SIM_NoVehicle.h @@ -0,0 +1,40 @@ +/* + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ +/* + empty vehicle for example CI testing +*/ + +#pragma once + +#include "SIM_Aircraft.h" + +namespace SITL { + +/* + empty vehicle + */ +class NoVehicle : public Aircraft { +public: + NoVehicle(const char *frame_str) : Aircraft(frame_str) {} + + void update(const struct sitl_input &input) override {} + + /* static object creator */ + static Aircraft *create(const char *frame_str) { + return new NoVehicle(frame_str); + } +}; + +} // namespace SITL