Skip to content

Commit 0721bfd

Browse files
Merge branch 'PX4:main' into mavlink_secure
2 parents 79e84da + 8c6337e commit 0721bfd

File tree

349 files changed

+9080
-2539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+9080
-2539
lines changed

.github/workflows/clang-tidy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- name: Testing (clang-tidy-quiet)
22+
- name: Testing (clang-tidy)
2323
uses: addnab/docker-run-action@v3
2424
with:
2525
image: px4io/px4-dev-clang:2021-09-08
2626
options: -v ${{ github.workspace }}:/workspace
2727
run: |
2828
cd /workspace
2929
git config --global --add safe.directory /workspace
30-
make clang-tidy-quiet
30+
make clang-tidy

.github/workflows/compile_macos.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ jobs:
3434
- uses: actions/checkout@v4
3535

3636
- name: setup
37-
run: ./Tools/setup/macos.sh; ./Tools/setup/macos.sh
37+
run: |
38+
./Tools/setup/macos.sh
39+
./Tools/setup/macos.sh
40+
brew unlink gcc-arm-none-eabi
41+
brew tap osx-cross/arm
42+
brew install arm-gcc-bin@13
43+
brew link --force arm-gcc-bin@13
3844
3945
- name: Prepare ccache timestamp
4046
id: ccache_cache_timestamp

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,6 @@
9292
[submodule "test/fuzztest"]
9393
path = test/fuzztest
9494
url = https://github.com/google/fuzztest.git
95+
[submodule "src/lib/tensorflow_lite_micro/tflite_micro"]
96+
path = src/lib/tensorflow_lite_micro/tflite_micro
97+
url = https://github.com/PX4/tflite-micro.git

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ python_coverage:
468468

469469
# static analyzers (scan-build, clang-tidy, cppcheck)
470470
# --------------------------------------------------------------------
471-
.PHONY: scan-build px4_sitl_default-clang clang-tidy clang-tidy-fix clang-tidy-quiet
471+
.PHONY: scan-build px4_sitl_default-clang clang-tidy clang-tidy-fix
472472
.PHONY: cppcheck shellcheck_all validate_module_configs
473473

474474
scan-build:
@@ -494,10 +494,6 @@ clang-tidy: px4_sitl_default-clang
494494
clang-tidy-fix: px4_sitl_default-clang
495495
@cd "$(SRC_DIR)"/build/px4_sitl_default-clang && "$(SRC_DIR)"/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j_clang_tidy) -fix -p .
496496

497-
# modified version of run-clang-tidy.py to return error codes and only output relevant results
498-
clang-tidy-quiet: px4_sitl_default-clang
499-
@cd "$(SRC_DIR)"/build/px4_sitl_default-clang && "$(SRC_DIR)"/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j_clang_tidy) -p .
500-
501497
# TODO: Fix cppcheck errors then try --enable=warning,performance,portability,style,unusedFunction or --enable=all
502498
cppcheck: px4_sitl_default
503499
@mkdir -p "$(SRC_DIR)"/build/cppcheck

ROMFS/px4fmu_common/init.d-posix/rcS

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ param set-default SYS_FAILURE_EN 1
190190
# does not go below 50% by default, but failure injection can trigger failsafes.
191191
param set-default COM_LOW_BAT_ACT 3
192192

193+
# set default IP to localhost
194+
param set-default UXRCE_DDS_AG_IP 2130706433 # 127.0.0.1
195+
193196

194197
# Adapt timeout parameters if simulation runs faster or slower than realtime.
195198
if [ -n "$PX4_SIM_SPEED_FACTOR" ]; then
@@ -319,7 +322,7 @@ then
319322
uxrce_dds_port="$PX4_UXRCE_DDS_PORT"
320323
fi
321324

322-
uxrce_dds_client start -t udp -h 127.0.0.1 -p $uxrce_dds_port $uxrce_dds_ns
325+
uxrce_dds_client start -t udp -p $uxrce_dds_port $uxrce_dds_ns
323326

324327
if param greater -s MNT_MODE_IN -1
325328
then
@@ -342,11 +345,7 @@ then
342345
gyro_calibration start
343346
fi
344347

345-
# Payload deliverer module if gripper is enabled
346-
if param compare -s PD_GRIPPER_EN 1
347-
then
348-
payload_deliverer start
349-
fi
348+
payload_deliverer start
350349

351350
if param compare -s ICE_EN 1
352351
then

ROMFS/px4fmu_common/init.d/rc.mc_apps

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ mc_pos_control start
3636
# Start Multicopter Land Detector.
3737
#
3838
land_detector start multicopter
39+
40+
if param compare -s MC_NN_EN 1
41+
then
42+
mc_nn_control start
43+
fi

ROMFS/px4fmu_common/init.d/rcS

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,7 @@ else
568568
px4flow start -X &
569569
fi
570570

571-
# Payload deliverer module if gripper is enabled
572-
if param compare -s PD_GRIPPER_EN 1
573-
then
574-
payload_deliverer start
575-
fi
571+
payload_deliverer start
576572

577573
if param compare -s ICE_EN 1
578574
then

Tools/astyle/files_to_check_code_style.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ exec find boards msg src platforms test \
3737
-path src/modules/zenoh/zenoh-pico -prune -o \
3838
-path boards/modalai/voxl2/libfc-sensor-api -prune -o \
3939
-path src/drivers/actuators/vertiq_io/iq-module-communication-cpp -prune -o \
40+
-path src/lib/tensorflow_lite_micro/tflite_micro -prune -o \
4041
\( -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) -print \) | grep $PATTERN

Tools/run-clang-tidy.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ def run_tidy(args, tmpdir, build_path, queue):
110110
args.extra_arg, args.extra_arg_before)
111111

112112
try:
113-
subprocess.check_call(invocation, stdin=None, stdout=open(os.devnull, 'wb'), stderr=subprocess.STDOUT)
113+
subprocess.check_call(invocation, stdin=None, stdout=open(os.devnull, 'w'), stderr=open(os.devnull, 'w'))
114114
except subprocess.CalledProcessError as e:
115-
sys.stdout.write(' '.join(invocation) + '\n')
116-
subprocess.call(invocation)
115+
sys.stdout.write(f'failed on {name} --> {" ".join(invocation)}\n')
116+
# Now run again to see the actual output
117+
subprocess.call(invocation, stdin=None)
117118
global tidy_failures
118119
tidy_failures = tidy_failures + 1
119120

boards/ark/fmu-v6x/default.px4board

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ CONFIG_MODULES_MC_POS_CONTROL=y
7979
CONFIG_MODULES_MC_RATE_CONTROL=y
8080
CONFIG_MODULES_NAVIGATOR=y
8181
CONFIG_NUM_MISSION_ITMES_SUPPORTED=1000
82+
CONFIG_MODULES_PAYLOAD_DELIVERER=y
8283
CONFIG_MODULES_RC_UPDATE=y
8384
CONFIG_MODULES_SENSORS=y
8485
CONFIG_MODULES_UXRCE_DDS_CLIENT=y

0 commit comments

Comments
 (0)