Browse Source

Flight Tasks: CMake/folder restructure (no code change)

put flight tasks in separate folder and create a lib for each
goal is to select tasks for targets (e.g. because of flash issue)
sbg
ChristophTobler 7 years ago committed by Dennis Mannhart
parent
commit
b68fd5e0a7
  1. 36
      src/lib/FlightTasks/CMakeLists.txt
  2. 22
      src/lib/FlightTasks/FlightTasks.hpp
  3. 39
      src/lib/FlightTasks/tasks/Auto/CMakeLists.txt
  4. 0
      src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.cpp
  5. 0
      src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp
  6. 39
      src/lib/FlightTasks/tasks/AutoFollowMe/CMakeLists.txt
  7. 0
      src/lib/FlightTasks/tasks/AutoFollowMe/FlightTaskAutoFollowMe.cpp
  8. 0
      src/lib/FlightTasks/tasks/AutoFollowMe/FlightTaskAutoFollowMe.hpp
  9. 39
      src/lib/FlightTasks/tasks/AutoLine/CMakeLists.txt
  10. 0
      src/lib/FlightTasks/tasks/AutoLine/FlightTaskAutoLine.cpp
  11. 0
      src/lib/FlightTasks/tasks/AutoLine/FlightTaskAutoLine.hpp
  12. 50
      src/lib/FlightTasks/tasks/CMakeLists.txt
  13. 2
      src/lib/FlightTasks/tasks/FlightTask.hpp
  14. 39
      src/lib/FlightTasks/tasks/Manual/CMakeLists.txt
  15. 0
      src/lib/FlightTasks/tasks/Manual/FlightTaskManual.cpp
  16. 0
      src/lib/FlightTasks/tasks/Manual/FlightTaskManual.hpp
  17. 39
      src/lib/FlightTasks/tasks/ManualAltitude/CMakeLists.txt
  18. 0
      src/lib/FlightTasks/tasks/ManualAltitude/FlightTaskManualAltitude.cpp
  19. 0
      src/lib/FlightTasks/tasks/ManualAltitude/FlightTaskManualAltitude.hpp
  20. 39
      src/lib/FlightTasks/tasks/ManualAltitudeSmooth/CMakeLists.txt
  21. 0
      src/lib/FlightTasks/tasks/ManualAltitudeSmooth/FlightTaskManualAltitudeSmooth.cpp
  22. 0
      src/lib/FlightTasks/tasks/ManualAltitudeSmooth/FlightTaskManualAltitudeSmooth.hpp
  23. 39
      src/lib/FlightTasks/tasks/ManualPosition/CMakeLists.txt
  24. 0
      src/lib/FlightTasks/tasks/ManualPosition/FlightTaskManualPosition.cpp
  25. 0
      src/lib/FlightTasks/tasks/ManualPosition/FlightTaskManualPosition.hpp
  26. 39
      src/lib/FlightTasks/tasks/ManualPositionSmooth/CMakeLists.txt
  27. 0
      src/lib/FlightTasks/tasks/ManualPositionSmooth/FlightTaskManualPositionSmooth.cpp
  28. 0
      src/lib/FlightTasks/tasks/ManualPositionSmooth/FlightTaskManualPositionSmooth.hpp
  29. 39
      src/lib/FlightTasks/tasks/ManualStabilized/CMakeLists.txt
  30. 0
      src/lib/FlightTasks/tasks/ManualStabilized/FlightTaskManualStabilized.cpp
  31. 0
      src/lib/FlightTasks/tasks/ManualStabilized/FlightTaskManualStabilized.hpp
  32. 39
      src/lib/FlightTasks/tasks/Offboard/CMakeLists.txt
  33. 0
      src/lib/FlightTasks/tasks/Offboard/FlightTaskOffboard.cpp
  34. 0
      src/lib/FlightTasks/tasks/Offboard/FlightTaskOffboard.hpp
  35. 39
      src/lib/FlightTasks/tasks/Orbit/CMakeLists.txt
  36. 0
      src/lib/FlightTasks/tasks/Orbit/FlightTaskOrbit.cpp
  37. 0
      src/lib/FlightTasks/tasks/Orbit/FlightTaskOrbit.hpp
  38. 0
      src/lib/FlightTasks/tasks/Sport/FlightTaskSport.hpp
  39. 0
      src/lib/FlightTasks/tasks/SubscriptionArray.cpp
  40. 0
      src/lib/FlightTasks/tasks/SubscriptionArray.hpp
  41. 41
      src/lib/FlightTasks/tasks/Utility/CMakeLists.txt

36
src/lib/FlightTasks/CMakeLists.txt

@ -32,22 +32,22 @@ @@ -32,22 +32,22 @@
############################################################################
px4_add_library(flight_tasks
tasks/FlightTask.cpp
tasks/FlightTaskManual.cpp
tasks/FlightTaskManualStabilized.cpp
tasks/FlightTaskOrbit.cpp
tasks/FlightTaskManualAltitude.cpp
tasks/FlightTaskManualAltitudeSmooth.cpp
tasks/FlightTaskManualPosition.cpp
tasks/FlightTaskManualPositionSmooth.cpp
tasks/FlightTaskAuto.cpp
tasks/FlightTaskAutoLine.cpp
tasks/FlightTaskAutoMapper.cpp
tasks/FlightTaskAutoFollowMe.cpp
tasks/FlightTaskOffboard.cpp
tasks/Utility/ManualSmoothingZ.cpp
tasks/Utility/ManualSmoothingXY.cpp
tasks/Utility/StraightLine.cpp
SubscriptionArray.cpp
FlightTasks.cpp
FlightTasks.cpp
)
target_link_libraries(flight_tasks PUBLIC
flight_tasks_manual
flight_tasks_manual_altitude
flight_tasks_manual_altitude_smooth
flight_tasks_manual_stabilized
flight_tasks_manual_position
flight_tasks_manual_position_smooth
flight_tasks_auto
flight_tasks_auto_line
flight_tasks_auto_follow_me
flight_tasks_offboard
flight_tasks_orbit
flight_tasks_utility
)
add_subdirectory(tasks)

22
src/lib/FlightTasks/FlightTasks.hpp

@ -41,17 +41,17 @@ @@ -41,17 +41,17 @@
#pragma once
#include "tasks/FlightTask.hpp"
#include "tasks/FlightTaskManualAltitude.hpp"
#include "tasks/FlightTaskManualAltitudeSmooth.hpp"
#include "tasks/FlightTaskManualPosition.hpp"
#include "tasks/FlightTaskManualPositionSmooth.hpp"
#include "tasks/FlightTaskManualStabilized.hpp"
#include "tasks/FlightTaskAutoLine.hpp"
#include "tasks/FlightTaskAutoFollowMe.hpp"
#include "tasks/FlightTaskOrbit.hpp"
#include "tasks/FlightTaskSport.hpp"
#include "tasks/FlightTaskOffboard.hpp"
#include "FlightTask.hpp"
#include "FlightTaskManualAltitude.hpp"
#include "FlightTaskManualAltitudeSmooth.hpp"
#include "FlightTaskManualPosition.hpp"
#include "FlightTaskManualPositionSmooth.hpp"
#include "FlightTaskManualStabilized.hpp"
#include "FlightTaskAutoLine.hpp"
#include "FlightTaskAutoFollowMe.hpp"
#include "FlightTaskOrbit.hpp"
#include "tasks/Sport/FlightTaskSport.hpp"
#include "FlightTaskOffboard.hpp"
#include "SubscriptionArray.hpp"

39
src/lib/FlightTasks/tasks/Auto/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_auto
FlightTaskAuto.cpp
)
target_link_libraries(flight_tasks_auto PUBLIC flight_task)
target_include_directories(flight_tasks_auto PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ../)

0
src/lib/FlightTasks/tasks/FlightTaskAuto.cpp → src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.cpp

0
src/lib/FlightTasks/tasks/FlightTaskAuto.hpp → src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp

39
src/lib/FlightTasks/tasks/AutoFollowMe/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_auto_follow_me
FlightTaskAutoFollowMe.cpp
)
target_link_libraries(flight_tasks_auto_follow_me PUBLIC flight_tasks_auto)
target_include_directories(flight_tasks_auto_follow_me PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0
src/lib/FlightTasks/tasks/FlightTaskAutoFollowMe.cpp → src/lib/FlightTasks/tasks/AutoFollowMe/FlightTaskAutoFollowMe.cpp

0
src/lib/FlightTasks/tasks/FlightTaskAutoFollowMe.hpp → src/lib/FlightTasks/tasks/AutoFollowMe/FlightTaskAutoFollowMe.hpp

39
src/lib/FlightTasks/tasks/AutoLine/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_auto_line
FlightTaskAutoLine.cpp
)
target_link_libraries(flight_tasks_auto_line PUBLIC flight_tasks_auto)
target_include_directories(flight_tasks_auto_line PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0
src/lib/FlightTasks/tasks/FlightTaskAutoLine.cpp → src/lib/FlightTasks/tasks/AutoLine/FlightTaskAutoLine.cpp

0
src/lib/FlightTasks/tasks/FlightTaskAutoLine.hpp → src/lib/FlightTasks/tasks/AutoLine/FlightTaskAutoLine.hpp

50
src/lib/FlightTasks/tasks/CMakeLists.txt

@ -0,0 +1,50 @@ @@ -0,0 +1,50 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_task
FlightTask.cpp
SubscriptionArray.cpp
)
add_subdirectory(Utility)
add_subdirectory(Manual)
add_subdirectory(ManualAltitude)
add_subdirectory(ManualAltitudeSmooth)
add_subdirectory(ManualPosition)
add_subdirectory(ManualPositionSmooth)
add_subdirectory(ManualStabilized)
add_subdirectory(Auto)
add_subdirectory(AutoLine)
add_subdirectory(AutoFollowMe)
add_subdirectory(Offboard)
add_subdirectory(Orbit)

2
src/lib/FlightTasks/tasks/FlightTask.hpp

@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
#include <uORB/topics/vehicle_command.h>
#include <uORB/topics/vehicle_constraints.h>
#include <uORB/topics/vehicle_attitude.h>
#include "../SubscriptionArray.hpp"
#include "SubscriptionArray.hpp"
class FlightTask : public ModuleParams
{

39
src/lib/FlightTasks/tasks/Manual/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_manual
FlightTaskManual.cpp
)
target_link_libraries(flight_tasks_manual PUBLIC flight_task)
target_include_directories(flight_tasks_manual PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ../)

0
src/lib/FlightTasks/tasks/FlightTaskManual.cpp → src/lib/FlightTasks/tasks/Manual/FlightTaskManual.cpp

0
src/lib/FlightTasks/tasks/FlightTaskManual.hpp → src/lib/FlightTasks/tasks/Manual/FlightTaskManual.hpp

39
src/lib/FlightTasks/tasks/ManualAltitude/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_manual_altitude
FlightTaskManualAltitude.cpp
)
target_link_libraries(flight_tasks_manual_altitude PUBLIC flight_tasks_manual_stabilized)
target_include_directories(flight_tasks_manual_altitude PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0
src/lib/FlightTasks/tasks/FlightTaskManualAltitude.cpp → src/lib/FlightTasks/tasks/ManualAltitude/FlightTaskManualAltitude.cpp

0
src/lib/FlightTasks/tasks/FlightTaskManualAltitude.hpp → src/lib/FlightTasks/tasks/ManualAltitude/FlightTaskManualAltitude.hpp

39
src/lib/FlightTasks/tasks/ManualAltitudeSmooth/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_manual_altitude_smooth
FlightTaskManualAltitudeSmooth.cpp
)
target_link_libraries(flight_tasks_manual_altitude_smooth PUBLIC flight_tasks_manual_altitude flight_tasks_utility)
target_include_directories(flight_tasks_manual_altitude_smooth PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0
src/lib/FlightTasks/tasks/FlightTaskManualAltitudeSmooth.cpp → src/lib/FlightTasks/tasks/ManualAltitudeSmooth/FlightTaskManualAltitudeSmooth.cpp

0
src/lib/FlightTasks/tasks/FlightTaskManualAltitudeSmooth.hpp → src/lib/FlightTasks/tasks/ManualAltitudeSmooth/FlightTaskManualAltitudeSmooth.hpp

39
src/lib/FlightTasks/tasks/ManualPosition/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_manual_position
FlightTaskManualPosition.cpp
)
target_link_libraries(flight_tasks_manual_position PUBLIC flight_tasks_manual_altitude)
target_include_directories(flight_tasks_manual_position PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0
src/lib/FlightTasks/tasks/FlightTaskManualPosition.cpp → src/lib/FlightTasks/tasks/ManualPosition/FlightTaskManualPosition.cpp

0
src/lib/FlightTasks/tasks/FlightTaskManualPosition.hpp → src/lib/FlightTasks/tasks/ManualPosition/FlightTaskManualPosition.hpp

39
src/lib/FlightTasks/tasks/ManualPositionSmooth/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_manual_position_smooth
FlightTaskManualPositionSmooth.cpp
)
target_link_libraries(flight_tasks_manual_position_smooth PUBLIC flight_tasks_manual_position flight_tasks_utility)
target_include_directories(flight_tasks_manual_position_smooth PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0
src/lib/FlightTasks/tasks/FlightTaskManualPositionSmooth.cpp → src/lib/FlightTasks/tasks/ManualPositionSmooth/FlightTaskManualPositionSmooth.cpp

0
src/lib/FlightTasks/tasks/FlightTaskManualPositionSmooth.hpp → src/lib/FlightTasks/tasks/ManualPositionSmooth/FlightTaskManualPositionSmooth.hpp

39
src/lib/FlightTasks/tasks/ManualStabilized/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_manual_stabilized
FlightTaskManualStabilized.cpp
)
target_link_libraries(flight_tasks_manual_stabilized PUBLIC flight_tasks_manual)
target_include_directories(flight_tasks_manual_stabilized PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0
src/lib/FlightTasks/tasks/FlightTaskManualStabilized.cpp → src/lib/FlightTasks/tasks/ManualStabilized/FlightTaskManualStabilized.cpp

0
src/lib/FlightTasks/tasks/FlightTaskManualStabilized.hpp → src/lib/FlightTasks/tasks/ManualStabilized/FlightTaskManualStabilized.hpp

39
src/lib/FlightTasks/tasks/Offboard/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_offboard
FlightTaskOffboard.cpp
)
target_link_libraries(flight_tasks_offboard PUBLIC flight_task)
target_include_directories(flight_tasks_offboard PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ../)

0
src/lib/FlightTasks/tasks/FlightTaskOffboard.cpp → src/lib/FlightTasks/tasks/Offboard/FlightTaskOffboard.cpp

0
src/lib/FlightTasks/tasks/FlightTaskOffboard.hpp → src/lib/FlightTasks/tasks/Offboard/FlightTaskOffboard.hpp

39
src/lib/FlightTasks/tasks/Orbit/CMakeLists.txt

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_orbit
FlightTaskOrbit.cpp
)
target_link_libraries(flight_tasks_orbit PUBLIC flight_tasks_manual_altitude_smooth)
target_include_directories(flight_tasks_orbit PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

0
src/lib/FlightTasks/tasks/FlightTaskOrbit.cpp → src/lib/FlightTasks/tasks/Orbit/FlightTaskOrbit.cpp

0
src/lib/FlightTasks/tasks/FlightTaskOrbit.hpp → src/lib/FlightTasks/tasks/Orbit/FlightTaskOrbit.hpp

0
src/lib/FlightTasks/tasks/FlightTaskSport.hpp → src/lib/FlightTasks/tasks/Sport/FlightTaskSport.hpp

0
src/lib/FlightTasks/SubscriptionArray.cpp → src/lib/FlightTasks/tasks/SubscriptionArray.cpp

0
src/lib/FlightTasks/SubscriptionArray.hpp → src/lib/FlightTasks/tasks/SubscriptionArray.hpp

41
src/lib/FlightTasks/tasks/Utility/CMakeLists.txt

@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
############################################################################
#
# Copyright (c) 2018 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_library(flight_tasks_utility
ManualSmoothingZ.cpp
ManualSmoothingXY.cpp
StraightLine.cpp
)
target_link_libraries(flight_tasks_utility PUBLIC flight_task)
target_include_directories(flight_tasks_utility PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
Loading…
Cancel
Save