Add new run configurations and update .gitignore

This commit includes a number of new configuration files for different build and debug scenarios. The .gitignore file has also been modified to allow these new configuration files to be shared among the team. This enhances the development environment setup and increases the efficiency when integrating new features or debugging existing ones.
This commit is contained in:
neo 2024-06-13 11:20:47 +02:00
parent b2c4175b11
commit a9f66aac75
8 changed files with 82 additions and 1 deletions

4
.gitignore vendored
View File

@ -48,7 +48,9 @@ GTAGS
*.includes *.includes
# CLion ignores # CLion ignores
.idea /.idea/*
#allow run config share
!/.idea/runConfigurations
cmake-build-*/ cmake-build-*/
posix-configs/SITL/init/test/*_generated posix-configs/SITL/init/test/*_generated

10
.idea/runConfigurations/build_afts.xml generated Normal file
View File

@ -0,0 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="build afts" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/Makefile" target="px4_fts-auto_default" workingDirectory="" arguments="">
<envs>
<env name="PYTHON_EXECUTABLE" value="$PROJECT_DIR$/venv/bin/python" />
</envs>
</makefile>
<method v="2" />
</configuration>
</component>

12
.idea/runConfigurations/build_mfts.xml generated Normal file
View File

@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="build mfts" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/Makefile" target="px4_fts-can_default" workingDirectory="" arguments="">
<envs>
<env name="PYTHON_EXECUTABLE" value="$PROJECT_DIR$/venv/bin/python" />
</envs>
</makefile>
<method v="2">
<option name="ToolBeforeRunTask" enabled="true" actionId="Tool_External Tools_venv" />
</method>
</configuration>
</component>

17
.idea/runConfigurations/clear.xml generated Normal file
View File

@ -0,0 +1,17 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="clear" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="rm -rf build" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="rm" />
<option name="SCRIPT_OPTIONS" value="-rf build" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/bin/bash" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="true" />
<option name="EXECUTE_SCRIPT_FILE" value="false" />
<envs />
<method v="2" />
</configuration>
</component>

10
.idea/runConfigurations/debug_AFTS.xml generated Normal file
View File

@ -0,0 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="debug AFTS" type="com.jetbrains.cidr.embedded.openocd.conf.type" factoryName="com.jetbrains.cidr.embedded.openocd.conf.factory" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="fts-can" TARGET_NAME="px4_fts-auto_default" CONFIG_NAME="px4_fts-auto_default" version="1" RUN_PATH="$PROJECT_DIR$/build/px4_fts-auto_default/px4_fts-auto_default.elf">
<openocd version="1" gdb-port="3333" telnet-port="4444" board-config="$PROJECT_DIR$/openocd.cfg" reset-type="RUN" download-type="ALWAYS">
<debugger kind="GDB" isBundled="true" />
</openocd>
<method v="2">
<option name="ToolBeforeRunTask" enabled="true" actionId="Tool_External Tools_build afts" />
</method>
</configuration>
</component>

10
.idea/runConfigurations/debug_MFTS.xml generated Normal file
View File

@ -0,0 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="debug MFTS" type="com.jetbrains.cidr.embedded.openocd.conf.type" factoryName="com.jetbrains.cidr.embedded.openocd.conf.factory" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="fts-can" TARGET_NAME="px4_fts-can_default" CONFIG_NAME="px4_fts-can_default" version="1" RUN_PATH="$PROJECT_DIR$/build/px4_fts-can_default/px4_fts-can_default.elf">
<openocd version="1" gdb-port="3333" telnet-port="4444" board-config="$PROJECT_DIR$/openocd.cfg" reset-type="RUN" download-type="ALWAYS">
<debugger kind="GDB" isBundled="true" />
</openocd>
<method v="2">
<option name="ToolBeforeRunTask" enabled="true" actionId="Tool_External Tools_build mfts" />
</method>
</configuration>
</component>

View File

@ -0,0 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="debug MFTS" type="com.jetbrains.cidr.embedded.openocd.conf.type" factoryName="com.jetbrains.cidr.embedded.openocd.conf.factory" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="fts-can" TARGET_NAME="px4_fts-can_default" CONFIG_NAME="px4_fts-can_default" version="1" RUN_PATH="$PROJECT_DIR$/build/px4_fts-can_default/px4_fts-can_default.elf">
<openocd version="1" gdb-port="3333" telnet-port="4444" board-config="$PROJECT_DIR$/openocd.cfg" reset-type="RUN" download-type="ALWAYS">
<debugger kind="GDB" isBundled="true" />
</openocd>
<method v="2">
<option name="ToolBeforeRunTask" enabled="true" actionId="Tool_External Tools_build mfts" />
</method>
</configuration>
</component>

10
.idea/runConfigurations/debug_v6c.xml generated Normal file
View File

@ -0,0 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="debug v6c" type="com.jetbrains.cidr.embedded.openocd.conf.type" factoryName="com.jetbrains.cidr.embedded.openocd.conf.factory" REDIRECT_INPUT="false" ELEVATE="false" USE_EXTERNAL_CONSOLE="false" EMULATE_TERMINAL="false" PASS_PARENT_ENVS_2="true" PROJECT_NAME="fts-can" TARGET_NAME="px4_fmu-v6c_default" CONFIG_NAME="px4_fmu-v6c_default" version="1" RUN_PATH="$PROJECT_DIR$/build/px4_fmu-v6c_default/px4_fmu-v6c_default.elf">
<openocd version="1" gdb-port="3333" telnet-port="4444" board-config="$PROJECT_DIR$/openocd.cfg" reset-type="RUN" download-type="UPDATED_ONLY">
<debugger kind="GDB" isBundled="true" />
</openocd>
<method v="2">
<option name="ToolBeforeRunTask" enabled="true" actionId="Tool_External Tools_build v6c" />
</method>
</configuration>
</component>