Repository Analysis

PX4/PX4-Autopilot

PX4 Autopilot Software

3.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of PX4/PX4-Autopilot, a C++ project with 12,142 GitHub stars. SynthScan v2.0 examined 1,682,593 lines of code across 10403 source files, recording 5433 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 3.7 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
12.1K
Stars
C++
Language
1.7M
Lines of Code
10.4K
Files
5.4K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 13HIGH 76MEDIUM 233LOW 5111

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 5433 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block4633 hits · 4566 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1############################################################################COMMENT
LOWCMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWCMakeLists.txt41#COMMENT
LOWCMakeLists.txt61# * Use px4_parse_function_args to parse functions and check for requiredCOMMENT
LOWCMakeLists.txt81# This makes it clear to the user when variables are being set or targetsCOMMENT
LOWCMakeLists.txt241#COMMENT
LOWplatforms/CMakeLists.txt1############################################################################COMMENT
LOWplatforms/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/posix/include/system_config.h41COMMENT
LOWplatforms/posix/include/queue.h41 ************************************************************************/COMMENT
LOWplatforms/posix/src/px4/CMakeLists.txt1############################################################################COMMENT
LOWplatforms/posix/src/px4/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/posix/src/px4/common/print_load.cpp41COMMENT
LOWplatforms/posix/src/px4/common/drv_hrt.cpp41#include <px4_platform_common/time.h>COMMENT
LOWplatforms/posix/src/px4/common/drv_hrt.cpp441 // We hold _hrt_lock across the callout. Previously we unlockedCOMMENT
LOWplatforms/posix/src/px4/common/CMakeLists.txt1############################################################################COMMENT
LOWplatforms/posix/src/px4/common/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/posix/src/px4/common/px4_posix_impl.cpp41#include <px4_platform_common/workqueue.h>COMMENT
LOWplatforms/posix/src/px4/common/tasks.cpp41#include <unistd.h>COMMENT
LOWplatforms/posix/src/px4/common/main.cpp61#include <sys/stat.h>COMMENT
LOWplatforms/posix/src/px4/common/SerialImpl.cpp141 //COMMENT
LOW…atforms/posix/src/px4/common/test_stubs/CMakeLists.txt1############################################################################COMMENT
LOW…atforms/posix/src/px4/common/test_stubs/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOW…atforms/posix/src/px4/common/px4_daemon/CMakeLists.txt1############################################################################COMMENT
LOW…atforms/posix/src/px4/common/px4_daemon/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/posix/src/px4/common/px4_daemon/client.cpp41#include <errno.h>COMMENT
LOWplatforms/posix/src/px4/common/px4_daemon/server_io.cpp41#include <stdio.h>COMMENT
LOWplatforms/posix/src/px4/common/px4_daemon/server.cpp41#include <errno.h>COMMENT
LOW…forms/posix/src/px4/common/gtest_runner/CMakeLists.txt1############################################################################COMMENT
LOW…forms/posix/src/px4/common/gtest_runner/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOW…4/common/lockstep_scheduler/src/lockstep_scheduler.cpp161 if (!timeout && _setting_time) {COMMENT
LOWplatforms/posix/src/px4/generic/CMakeLists.txt1############################################################################COMMENT
LOWplatforms/posix/src/px4/generic/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/posix/src/px4/generic/generic/CMakeLists.txt1############################################################################COMMENT
LOWplatforms/posix/src/px4/generic/generic/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOW…osix/src/px4/generic/generic/tone_alarm/CMakeLists.txt1############################################################################COMMENT
LOW…osix/src/px4/generic/generic/tone_alarm/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/qurt/CMakeLists.txt1############################################################################COMMENT
LOWplatforms/qurt/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/qurt/include/system_config.h41COMMENT
LOWplatforms/qurt/include/termios.h41#define INPCK (1 << 4) /* Bit 4: Enable input parity check */COMMENT
LOWplatforms/qurt/include/termios.h61# define NL0 (0 << 8) /* Newline character type 0 */COMMENT
LOWplatforms/qurt/include/termios.h81# define FF1 (1 << 15) /* Form-feed delay type 1 */COMMENT
LOWplatforms/qurt/include/termios.h141#define VTIME 5 /* Bit 5: TIME value (non-canonical mode) */COMMENT
LOWplatforms/qurt/include/termios.h161#define B200 0000006 /* 200 baud */COMMENT
LOWplatforms/qurt/include/termios.h181#define B1500000 0010012 /* 1,500,000 baud */COMMENT
LOWplatforms/qurt/include/queue.h41 ************************************************************************/COMMENT
LOWplatforms/qurt/src/px4/CMakeLists.txt1############################################################################COMMENT
LOWplatforms/qurt/src/px4/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/ros2/CMakeLists.txt1############################################################################COMMENT
LOWplatforms/ros2/CMakeLists.txt21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSCOMMENT
LOWplatforms/ros2/CMakeLists.txt61endforeach()COMMENT
LOWplatforms/ros2/include/system_config.h41COMMENT
LOWplatforms/ros2/include/queue.h41 ************************************************************************/COMMENT
LOWplatforms/ros2/include/px4_platform_common/time.h1COMMENT
LOWplatforms/ros2/include/px4_platform_common/sem.h81//#define px4_sem_trywait sem_trywaitCOMMENT
LOWplatforms/ros2/include/px4_platform_common/tasks.h41 */COMMENT
LOWplatforms/ros2/include/px4_platform_common/tasks.h61COMMENT
LOWplatforms/ros2/include/px4_platform_common/tasks.h101#endifCOMMENT
LOWplatforms/ros2/include/px4_platform_common/tasks.h121// else in the system. They wait on sensor data which is either comingCOMMENT
4573 more matches not shown…
Decorative Section Separators173 hits · 576 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt34#=============================================================================COMMENT
MEDIUMCMakeLists.txt38# ---------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt46# ---------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt92# ---------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt100#=============================================================================COMMENT
MEDIUMCMakeLists.txt110#=============================================================================COMMENT
MEDIUMCMakeLists.txt405#=============================================================================COMMENT
MEDIUMCMakeLists.txt412#=============================================================================COMMENT
MEDIUMCMakeLists.txt419#=============================================================================COMMENT
MEDIUMCMakeLists.txt428#=============================================================================COMMENT
MEDIUMCMakeLists.txt59# ---------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt75# ---------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt167#=============================================================================COMMENT
MEDIUMCMakeLists.txt239#=============================================================================COMMENT
MEDIUMCMakeLists.txt321#=============================================================================COMMENT
MEDIUMCMakeLists.txt342#=============================================================================COMMENT
MEDIUMCMakeLists.txt367#=============================================================================COMMENT
MEDIUMCMakeLists.txt378#=============================================================================COMMENT
MEDIUMCMakeLists.txt443#=============================================================================COMMENT
MEDIUMCMakeLists.txt457#=============================================================================COMMENT
MEDIUMCMakeLists.txt500#=============================================================================COMMENT
MEDIUMplatforms/posix/CMakeLists.txt82#=============================================================================COMMENT
MEDIUMTools/px4_uploader.py146# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py148# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py2154# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py2156# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py97# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py99# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py212# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py214# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py271# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py273# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py300# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py302# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py413# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py415# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py605# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py607# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py1415# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py1417# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py1557# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py1559# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py1735# =============================================================================COMMENT
MEDIUMTools/px4_uploader.py1737# =============================================================================COMMENT
MEDIUMTools/ci/metadata_sync.sh40# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh42# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh50# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh52# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh71# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh73# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh80# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh82# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh117# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh119# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh176# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh178# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh320# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/metadata_sync.sh322# ═══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMTools/ci/pr-review-poster.py104# ---------------------------------------------------------------------------COMMENT
MEDIUMTools/ci/pr-review-poster.py106# ---------------------------------------------------------------------------COMMENT
113 more matches not shown…
Cross-File Repetition43 hits · 215 pts
SeverityFileLineSnippetContext
HIGHTools/migrate_c_params.py0parses provided data and stores all found parameters internally.STRING
HIGHTools/px4moduledoc/srcparser.py0parses provided data and stores all found parameters internally.STRING
HIGHTools/px4airframes/srcparser.py0parses provided data and stores all found parameters internally.STRING
HIGHsrc/lib/parameters/px4params/srcparser.py0parses provided data and stores all found parameters internally.STRING
HIGHTools/px4moduledoc/srcscanner.py0traverses directory tree, reads all source files, and passes their contents to the parser.STRING
HIGHTools/px4airframes/srcscanner.py0traverses directory tree, reads all source files, and passes their contents to the parser.STRING
HIGHTools/px4events/srcscanner.py0traverses directory tree, reads all source files, and passes their contents to the parser.STRING
HIGHsrc/lib/parameters/px4params/srcscanner.py0traverses directory tree, reads all source files, and passes their contents to the parser.STRING
HIGHTools/px4moduledoc/srcscanner.py0scans provided path and passes all found contents to the parser using parser.parse method.STRING
HIGHTools/px4airframes/srcscanner.py0scans provided path and passes all found contents to the parser using parser.parse method.STRING
HIGHTools/px4events/srcscanner.py0scans provided path and passes all found contents to the parser using parser.parse method.STRING
HIGHsrc/lib/parameters/px4params/srcscanner.py0scans provided path and passes all found contents to the parser using parser.parse method.STRING
HIGHTools/px4moduledoc/srcscanner.py0scans provided file and passes its contents to the parser using parser.parse method.STRING
HIGHTools/px4airframes/srcscanner.py0scans provided file and passes its contents to the parser using parser.parse method.STRING
HIGHTools/px4events/srcscanner.py0scans provided file and passes its contents to the parser using parser.parse method.STRING
HIGHsrc/lib/parameters/px4params/srcscanner.py0scans provided file and passes its contents to the parser using parser.parse method.STRING
HIGHTools/px4airframes/srcparser.py0get parameter group image base name (w/o extension)STRING
HIGHdocs/zh/dev_airframes/adding_a_new_frame.md0get parameter group image base name (w/o extension)STRING
HIGHdocs/uk/dev_airframes/adding_a_new_frame.md0get parameter group image base name (w/o extension)STRING
HIGHdocs/ko/dev_airframes/adding_a_new_frame.md0get parameter group image base name (w/o extension)STRING
HIGHdocs/en/dev_airframes/adding_a_new_frame.md0get parameter group image base name (w/o extension)STRING
HIGHTools/kconfig/updateconfig.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGHsrc/lib/world_magnetic_model/fetch_noaa_table.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGHsrc/lib/world_magnetic_model/generate_gtest.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGHsrc/lib/wind_estimator/python/derivation.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGHsrc/lib/wind_estimator/python/wind_estimator_replay.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGHsrc/lib/wind_estimator/python/derivation_utils.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…t_estimator/Orientation/vtest_derivation/derivation.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…rget_estimator/Position/vtest_derivation/derivation.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…or/Position/vtest_derivation/utils/derivation_utils.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…dules/ekf2/EKF/python/tuning_tools/gyro_integration.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…mpensation/baro_static_pressure_compensation_tuning.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…tuning_tools/mc_wind_estimator/drag_fusion_symbolic.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…ng_tools/mc_wind_estimator/mc_wind_estimator_tuning.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…f2/EKF/python/ekf_derivation/utils/derivation_utils.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGH…F/yaw_estimator/derivation/derivation_yaw_estimator.py0copyright (c) 2022 px4 development team redistribution and use in source and binary forms, with or without modification,STRING
HIGHdocs/zh/ros/mavros_offboard_python.md0* file: offb_node.py * stack and tested in gazebo classic 9 sitlSTRING
HIGHdocs/uk/ros/mavros_offboard_python.md0* file: offb_node.py * stack and tested in gazebo classic 9 sitlSTRING
HIGHdocs/ko/ros/mavros_offboard_python.md0* file: offb_node.py * stack and tested in gazebo classic 9 sitlSTRING
HIGHdocs/en/ros/mavros_offboard_python.md0* file: offb_node.py * stack and tested in gazebo classic 9 sitlSTRING
HIGHsrc/lib/wind_estimator/python/derivation_utils.py0returns -1 if x is negative, 1 if x is positive, and 1 if x is zeroSTRING
HIGH…or/Position/vtest_derivation/utils/derivation_utils.py0returns -1 if x is negative, 1 if x is positive, and 1 if x is zeroSTRING
HIGH…f2/EKF/python/ekf_derivation/utils/derivation_utils.py0returns -1 if x is negative, 1 if x is positive, and 1 if x is zeroSTRING
Cross-Language Confusion29 hits · 140 pts
SeverityFileLineSnippetContext
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py3809 example, 'default A && B if C || D' is represented asCODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py3809 example, 'default A && B if C || D' is represented asCODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py3818 example, 'select A if B && C' is represented as (A, (AND, B, C)). If noCODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5650 split_expr( A && B , OR ) -> [A && B]CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5651 split_expr( A || B , OR ) -> [A, B]CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5652 split_expr( A || B , AND ) -> [A || B]CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5653 split_expr( A || B || (C && D) , OR ) -> [A, B, C && D]CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5653 split_expr( A || B || (C && D) , OR ) -> [A, B, C && D]CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5656 split_expr( A || (B && (C || D)) , OR ) -> [A, B && (C || D)]CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5660 split_expr( (A || B) || C , OR ) -> [A, B, C]CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5661 split_expr( A || (B || C) , OR ) -> [A, B, C]CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py1667 which has the value y, then config.eval_string("y && (FOO || BAR)")CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py1676 the C implementation. m is rewritten to 'm && MODULES', soCODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py3720 (A, !A, A && B, A || B).CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py3720 (A, !A, A && B, A || B).CODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py3835 Gotcha: 1 and 2 above will be represented as (undefined) Symbols ratherCODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py4723 example, 'default A if B && C' is represented as (A, (AND, B, C)). IfCODE
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py174 tristate "foo" if A && B && C && DSTRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py175 default y if A && B && CSTRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py179In this example, A && B && C && D (the prompt condition) needs to be non-n forSTRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py292A && B (AND, A, B)STRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py293A && B && C (AND, A, (AND, B, C))STRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py294A || B (OR, A, B)STRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py295A || (B && C && D) (OR, A, (AND, B, (AND, C, D)))STRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py298A && B = C && D (AND, A, (AND, (EQUAL, B, C), D))STRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py315 - The value of A && B is min(A.tri_value, B.tri_value)STRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py317 - The value of A || B is max(A.tri_value, B.tri_value)STRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py324 For constant (as well as undefined) symbols, str_value matches the name ofSTRING
HIGHplatforms/nuttx/NuttX/tools/kconfiglib.py5953 return name + " (undefined)"STRING
Hallucination Indicators13 hits · 140 pts
SeverityFileLineSnippetContext
CRITICALdocs/zh/sim_jmavsim/index.md314at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)CODE
CRITICALdocs/zh/sim_jmavsim/index.md323at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)CODE
CRITICALdocs/zh/sim_jmavsim/index.md353at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)CODE
CRITICALdocs/uk/sim_jmavsim/index.md314at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)CODE
CRITICALdocs/uk/sim_jmavsim/index.md323at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)CODE
CRITICALdocs/ko/sim_jmavsim/index.md314at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)CODE
CRITICALdocs/ko/sim_jmavsim/index.md323at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)CODE
CRITICALdocs/ko/sim_jmavsim/index.md353at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)CODE
CRITICALdocs/en/sim_jmavsim/index.md312at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)CODE
CRITICALdocs/en/sim_jmavsim/index.md321at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)CODE
CRITICALdocs/en/sim_jmavsim/index.md351at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)CODE
CRITICALsrc/drivers/cyphal/Subscribers/udral/Esc.hpp80 // export YAKUT_TRANSPORT="pyuavcan.transport.can.CANTransport(pyuavcan.transport.can.media.slcan.SLCANMedia('/dev/serCOMMENT
CRITICALsrc/drivers/cyphal/Subscribers/udral/Gnss.hpp83 // export YAKUT_TRANSPORT="pyuavcan.transport.can.CANTransport(pyuavcan.transport.can.media.slcan.SLCANMedia('/dev/serCOMMENT
Deep Nesting148 hits · 132 pts
SeverityFileLineSnippetContext
LOWplatforms/nuttx/NuttX/tools/oldconfig.py56CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py5729CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py6002CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py6160CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py1023CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py1038CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py1131CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py1283CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py1329CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py1570CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py1609CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py2001CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py2376CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py2463CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py2551CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py2797CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py2988CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py3401CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py3491CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py3599CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py3935CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py4076CODE
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py4533CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py527CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py696CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py760CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py1453CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py1527CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py1636CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py1840CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py1935CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py2215CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py2301CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py2796CODE
LOWplatforms/nuttx/NuttX/tools/menuconfig.py2893CODE
LOWplatforms/nuttx/Debug/Nuttx.py182CODE
LOWplatforms/nuttx/Debug/Nuttx.py503CODE
LOWTools/fetch_file.py145CODE
LOWTools/migrate_c_params.py349CODE
LOWTools/migrate_c_params.py423CODE
LOWTools/migrate_c_params.py95CODE
LOWTools/migrate_c_params.py240CODE
LOWTools/upload_log.py54CODE
LOWTools/run-clang-tidy.py124CODE
LOWTools/px4_uploader.py2159CODE
LOWTools/px4_uploader.py1504CODE
LOWTools/px4_uploader.py1587CODE
LOWTools/px4_uploader.py1763CODE
LOWTools/mavlink_shell.py106CODE
LOWTools/itcm_check.py80CODE
LOWTools/itcm_check.py110CODE
LOWTools/px_romfs_pruner.py55CODE
LOWTools/mavlink_ulog_streaming.py77CODE
LOWTools/mavlink_ulog_streaming.py121CODE
LOWTools/teensy_uploader.py78CODE
LOWTools/uorb_graph/create.py59CODE
LOWTools/uorb_graph/create.py95CODE
LOWTools/uorb_graph/create.py324CODE
LOWTools/uorb_graph/create.py423CODE
LOWTools/uorb_graph/create.py484CODE
88 more matches not shown…
Unused Imports129 hits · 128 pts
SeverityFileLineSnippetContext
LOWplatforms/nuttx/NuttX/tools/oldconfig.py24CODE
LOWplatforms/nuttx/Debug/Nuttx.py3CODE
LOWTools/fetch_file.py44CODE
LOWTools/process_sensor_caldata.py3CODE
LOWTools/process_sensor_caldata.py13CODE
LOWTools/upload_log.py10CODE
LOWTools/run-clang-tidy.py36CODE
LOWTools/mavlink_shell.py10CODE
LOWTools/px_romfs_pruner.py48CODE
LOWTools/validate_yaml.py4CODE
LOWTools/px4.py41CODE
LOWTools/px4.py43CODE
LOWTools/px4.py44CODE
LOWTools/px4.py45CODE
LOWTools/px4.py46CODE
LOWTools/px4.py47CODE
LOWTools/px4.py49CODE
LOWTools/px4.py50CODE
LOWTools/px4.py51CODE
LOWTools/px4.py54CODE
LOWTools/px4.py55CODE
LOWTools/px4.py57CODE
LOWTools/mavlink_ulog_streaming.py10CODE
LOWTools/mavlink_ulog_streaming.py11CODE
LOWTools/geotag_images_ulog.py33CODE
LOWTools/geotag_images_ulog.py35CODE
LOWTools/geotag_images_ulog.py36CODE
LOWTools/px_process_events.py46CODE
LOWTools/px_process_events.py47CODE
LOWTools/px_process_module_doc.py42CODE
LOWTools/px_process_module_doc.py48CODE
LOWTools/px_process_module_doc.py49CODE
LOWTools/px_process_module_doc.py50CODE
LOWTools/teensy_uploader.py49CODE
LOWTools/boot_now.py40CODE
LOWTools/px_process_airframes.py45CODE
LOWTools/px_process_airframes.py47CODE
LOWTools/uorb_graph/create.py3CODE
LOWTools/uorb_graph/create.py13CODE
LOWTools/uorb_graph/create.py13CODE
LOWTools/px4moduledoc/markdownout.py6CODE
LOWTools/px4moduledoc/srcparser.py2CODE
LOWTools/px4moduledoc/srcscanner.py5CODE
LOWTools/module_config/generate_params.py9CODE
LOWTools/module_config/output_groups_from_timer_config.py7CODE
LOWTools/module_config/output_groups_from_timer_config.py8CODE
LOWTools/msg/px_generate_uorb_topic_helper.py42CODE
LOWTools/msg/px_generate_uorb_topic_helper.py43CODE
LOWTools/msg/generate_msg_docs.py10CODE
LOWTools/ci/generate_board_targets_json.py6CODE
LOWTools/px4airframes/xmlout.py2CODE
LOWTools/px4airframes/markdownout.py3CODE
LOWTools/px4airframes/srcscanner.py2CODE
LOWTools/px4airframes/rcout.py1CODE
LOWTools/kconfig/merge_config.py73CODE
LOWTools/kconfig/merge_config.py76CODE
LOWTools/zenoh/px_generate_zenoh_topic_files.py58CODE
LOWTools/log_encryption/download_logs.py4CODE
LOWTools/ecl_ekf/process_logdata_ekf.py3CODE
LOWTools/ecl_ekf/plotting/pdf_report.py15CODE
69 more matches not shown…
Excessive Try-Catch Wrapping86 hits · 126 pts
SeverityFileLineSnippetContext
LOWTools/fetch_file.py202 except Exception as e:CODE
MEDIUMTools/fetch_file.py123def _get_files_in_dir(ser, path, path_out, force, timeout):CODE
LOWTools/upload_log.py48 except Exception:CODE
MEDIUMTools/run-clang-tidy.py61 print('Error: could not find compilation database.')CODE
LOWTools/px4_uploader.py141 except Exception as e:CODE
LOWTools/px4_uploader.py2150 except Exception:CODE
LOWTools/px4_uploader.py479 except Exception as e:CODE
LOWTools/px4_uploader.py746 except Exception as e:CODE
LOWTools/px4_uploader.py1389 except Exception as e:CODE
LOWTools/px4_uploader.py1499 except Exception as e:CODE
LOWTools/px4_uploader.py1521 except Exception as e:CODE
LOWTools/px4_uploader.py1948 except Exception:CODE
LOWTools/px4_uploader.py1973 except Exception:CODE
LOWTools/px4_uploader.py1985 except Exception:CODE
MEDIUMTools/mavlink_shell.py124 print("Error: no serial connection found")CODE
MEDIUMTools/mavlink_ulog_streaming.py260 print("Error: no serial connection found")CODE
MEDIUMTools/geotag_images_ulog.py103 print("Error: file %s not found" % file_name)CODE
LOWTools/geotag_images_ulog.py107 except Exception as error:CODE
MEDIUMTools/geotag_images_ulog.py145 print("Error: file %s not found" % file_name)CODE
LOWTools/geotag_images_ulog.py149 except Exception as error:CODE
MEDIUMTools/px_process_events.py76 print("Error: You need to specify at least one output method!")CODE
MEDIUMTools/px_process_module_doc.py73 print("Error: You need to specify at least one output method!")CODE
MEDIUMTools/px_process_module_doc.py88 print("Error: validation failed")CODE
LOWTools/teensy_uploader.py134 except Exception:CODE
LOWTools/boot_now.py54except Exception:CODE
MEDIUMTools/px_process_airframes.py91 print("Error: You need to specify at least one output method!\n")CODE
MEDIUMTools/uorb_graph/create.py786 print('Error: unknown output format '+args.output)CODE
LOWTools/packaging/test_sih_mission.py138 except Exception as e:CODE
LOWTools/module_config/generate_actuators_metadata.py480 except Exception as e:CODE
LOWTools/module_config/generate_params.py384 except Exception as e:STRING
MEDIUMTools/msg/px_generate_uorb_topic_files.py252 print('Error: either --headers, --sources or --json must be specified')CODE
MEDIUMTools/msg/generate_msg_docs.py909 print(f"Error parsing YAML: {exc}")STRING
MEDIUMTools/msg/generate_msg_docs.py911 print(f"Error: {dds_file_path} not found.")STRING
LOWTools/ci/_github_helpers.py163 except Exception:CODE
MEDIUMTools/kconfig/diffconfig.py131 print("Error: incorrect number of arguments or unrecognized option")STRING
MEDIUMTools/zenoh/px_generate_zenoh_topic_files.py193 print('Error: either --headers or --sources must be specified')CODE
LOWTools/log_encryption/decrypt_logs.py85 except Exception as e:CODE
MEDIUMTools/log_encryption/decrypt_logs.py132 print(f"Error: Private key file not found at {private_key_path}")CODE
LOWTools/ecl_ekf/process_logdata_ekf.py171 except Exception as e:CODE
LOWTools/ecl_ekf/analyse_logdata_ekf.py59 except Exception as e:CODE
LOWTools/ecl_ekf/batch_process_logdata_ekf.py76 except Exception as e:CODE
LOWTools/bench_test/run_bench_suite.py337 except Exception:CODE
LOWTools/bench_test/bench/param_stress.py337 except Exception as e:CODE
LOWTools/bench_test/bench/param_stress.py343 except Exception:CODE
LOWTools/bench_test/bench/mission_stress.py120 except Exception:CODE
LOWTools/bench_test/bench/link_forwarding.py66 except Exception as e: # noqa: BLE001 - a worker crash must be reported, not lostCODE
LOWTools/bench_test/bench/link_forwarding.py141 except Exception: # noqa: BLE001 - length is best-effort accounting onlyCODE
LOWTools/bench_test/bench/link_forwarding.py355 except Exception: # noqa: BLE001 - cleanup onlyCODE
MEDIUMTools/bench_test/bench/link_forwarding.py63def run(self):CODE
LOWTools/bench_test/bench/log_transfer.py173 except Exception as e: # noqa: BLE001 - a parse failure is a real findingCODE
LOWTools/bench_test/bench/log_transfer.py180 except Exception: # noqa: BLE001 - cleanup onlyCODE
LOWTools/bench_test/bench/log_transfer.py185 except Exception: # noqa: BLE001 - cleanup onlyCODE
LOWTools/bench_test/sih/flight_mission.py338 except Exception as e: # noqa: BLE001 - never let log retrieval kill restoreCODE
LOWTools/bench_test/sih/flight_mission.py452 except Exception as e:CODE
LOWTools/bench_test/sih/flight_mission.py457 except Exception:CODE
LOWTools/bench_test/px4bench/firmware.py303 except Exception:CODE
LOWTools/bench_test/px4bench/__init__.py348 except Exception:CODE
LOWTools/bench_test/px4bench/ftp.py57 except Exception as e: # noqa: BLE001 - surface write failures to the callerCODE
MEDIUMTools/dronecan_calibration/range_sensor_latency.py30 print("Error: pyulog not installed. Run: pip install pyulog", file=sys.stderr)CODE
MEDIUMTools/dronecan_calibration/range_sensor_latency.py39 print("Error: matplotlib not installed. Run: pip install matplotlib", file=sys.stderr)CODE
26 more matches not shown…
Hyper-Verbose Identifiers75 hits · 70 pts
SeverityFileLineSnippetContext
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py1760 def disable_override_warnings(self):STRING
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py4511 def _rec_invalidate_if_has_prompt(self):STRING
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py4568 def _warn_select_unsatisfied_deps(self):STRING
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py5024 def _get_selection_from_defaults(self):STRING
LOWplatforms/nuttx/NuttX/tools/menuconfig.py1083def _select_selected_choice_sym():STRING
LOWplatforms/nuttx/NuttX/tools/menuconfig.py2160def _sorted_menu_comment_nodes(cached_nodes=[]):STRING
LOWplatforms/nuttx/Debug/poor-mans-profiler.sh168def split_first_part_with_parens(line):CODE
LOWTools/run-clang-tidy.py56def find_compilation_database(path):CODE
LOWTools/px4_uploader.py1397 def _send_protocol_splitter_frame(self, data: bytes) -> None:CODE
LOWTools/itcm_check.py58def get_elf_symbols_from_debug(elf_path: Path) -> Set[str]:CODE
LOWTools/itcm_check.py80def get_elf_symbols_from_sections(elf_path: Path) -> Set[str]:CODE
LOWTools/mavlink_ulog_streaming.py189 def process_streamed_ulog_data(self, data, first_msg_start, num_drops):CODE
LOWTools/uorb_graph/create.py423 def _extract_build_information(self, file_name, **kwargs):CODE
LOWTools/px4moduledoc/srcparser.py65 def _handle_usage_subcategory(self, args):CODE
LOWTools/px4moduledoc/srcparser.py69 def _handle_usage_name_simple(self, args):CODE
LOWTools/px4moduledoc/srcparser.py76 def _handle_usage_command_descr(self, args):CODE
LOWTools/px4moduledoc/srcparser.py97 def _handle_usage_default_commands(self, args):CODE
LOWTools/px4moduledoc/srcparser.py114 def _handle_usage_param_float(self, args):CODE
LOWTools/px4moduledoc/srcparser.py169 def _handle_usage_param_string(self, args):CODE
LOWTools/px4moduledoc/srcparser.py191 def _handle_usage_param_comment(self, args):CODE
LOWTools/module_config/generate_params.py81def parse_yaml_parameters_config(yaml_config, ethernet_supported):CODE
LOWTools/module_config/generate_params.py172def get_actuator_output_params(yaml_config, output_functions,STRING
LOWTools/module_config/output_groups_from_timer_config.py44def extract_timer_from_channel(line, timer_names):CODE
LOWTools/msg/px_generate_uorb_topic_files.py107def generate_output_from_file(format_idx, filename, outputdir, package, templatedir, includepath, all_topics):CODE
LOWTools/msg/px_generate_uorb_topic_files.py199def generate_topics_list_file_from_files(files, outputdir, template_filename, templatedir, all_topics):CODE
LOWTools/msg/px_generate_uorb_topic_helper.py174def get_message_fields_str_for_message_hash(msg_fields, search_path):CODE
LOWTools/msg/px_generate_uorb_compressed_fields.py63def get_ordered_list_by_dependency(name: str, definitions: dict) -> [str]:CODE
LOWTools/ci/clang-tidy-fixes-to-review.py123def get_diff_line_ranges_per_file(pr_files):CODE
LOWTools/ci/clang-tidy-fixes-to-review.py197 def validate_warning_applicability(file_path, start_line_num, end_line_num):CODE
LOWTools/ci/clang-tidy-fixes-to-review.py206 def calculate_replacements_diff(file_path, replacements):CODE
LOWTools/ci/generate_sbom.py238def extract_git_host_org_repo(url):CODE
LOWTools/zenoh/px_generate_zenoh_topic_files.py128def generate_topics_list_file_from_files(files, outputdir, template_filename, templatedir, rihs_path):CODE
LOWTools/ecl_ekf/analysis/metrics.py13def calculate_ecl_ekf_metrics(CODE
LOWTools/ecl_ekf/analysis/metrics.py92def calculate_innov_fail_metrics(CODE
LOWTools/ecl_ekf/analysis/metrics.py183def calculate_stat_from_signal(CODE
LOWTools/ecl_ekf/analysis/checks.py94def perform_sensor_innov_checks(CODE
LOWTools/ecl_ekf/analysis/data_version_handler.py9def get_output_tracking_error_message(ulog: ULog) -> str:CODE
LOWTools/ecl_ekf/analysis/detectors.py139 def get_take_off_to_last_landing(self, dataset) -> list:CODE
LOWTools/ecl_ekf/analysis/post_processing.py40def magnetic_field_estimates_from_states(estimator_states: dict) -> Tuple[float, float, float]:CODE
LOWTools/bench_test/run_bench_suite.py180def report_build_capabilities(report, target, interactive):CODE
LOWTools/bench_test/px4bench/firmware.py79def expected_hash_from_metadata(meta):CODE
LOWdocs/.vitepress/get_sidebar.js29function parseGitbookSidebarToVuepress(sidebarContent, lang) {CODE
LOWdocs/public/config/failsafe/index.js1var Module=typeof Module!="undefined"?Module:{};var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKERCODE
LOW…/dynamic_node_id_server/allocation_request_manager.cpp14class AllocationRequestHandler : public uavcan::dynamic_node_id_server::IAllocationRequestHandlerCODE
LOW…/dynamic_node_id_server/allocation_request_manager.hpp25class IAllocationRequestHandlerCODE
LOWsrc/drivers/uavcannode/UavcanNode.cpp514class RestartRequestHandler: public uavcan::IRestartRequestHandlerCODE
LOWsrc/lib/heatshrink/heatshrink_encode.py230def heatshrink_encoder_finish(hse):CODE
LOW…t_estimator/Orientation/vtest_derivation/derivation.py148def derive_discrete_process_noise(dt: sf.Scalar, yaw_acc_var: sf.Scalar) -> MState:CODE
LOW…rget_estimator/Position/vtest_derivation/derivation.py142def integrate_continuous_noise_gain(CODE
LOW…or/Position/vtest_derivation/utils/derivation_utils.py138def build_tangent_state_struct(state, tangent_state_index):CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py251def compute_airspeed_innov_and_innov_var(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py284def compute_wind_init_and_cov_from_airspeed(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py313def compute_wind_init_and_cov_from_wind_speed_and_direction(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py340def compute_sideslip_innov_and_innov_var(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py376def compute_body_vel_innov_var_h(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py392def compute_body_vel_y_innov_var(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py404def compute_body_vel_z_innov_var(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py423def compute_mag_innov_innov_var_and_hx(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py446def compute_mag_y_innov_var_and_h(CODE
LOW…c/modules/ekf2/EKF/python/ekf_derivation/derivation.py461def compute_mag_z_innov_var_and_h(CODE
15 more matches not shown…
Structural Annotation Overuse31 hits · 46 pts
SeverityFileLineSnippetContext
LOWdocs/zh/hardware/board_packaging.md50### Step 1: CPack Configuration (package.cmake)COMMENT
LOWdocs/zh/hardware/board_packaging.md102### Step 2: Install Rules (install.cmake)COMMENT
LOWdocs/zh/hardware/board_packaging.md150### Step 3: Debian Scripts (optional)COMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md67### Step 1: Attach motors mountsCOMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md87### Step 2: Attach the wingsCOMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md113### Step 3: Connect the electronicsCOMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md241### Step 4: Final Assembly ChecksCOMMENT
LOWdocs/uk/hardware/board_packaging.md50### Step 1: CPack Configuration (package.cmake)COMMENT
LOWdocs/uk/hardware/board_packaging.md102### Step 2: Install Rules (install.cmake)COMMENT
LOWdocs/uk/hardware/board_packaging.md150### Step 3: Debian Scripts (optional)COMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md241### Step 4: Final Assembly ChecksCOMMENT
LOWdocs/ko/hardware/board_packaging.md50### Step 1: CPack Configuration (package.cmake)COMMENT
LOWdocs/ko/hardware/board_packaging.md102### Step 2: Install Rules (install.cmake)COMMENT
LOWdocs/ko/hardware/board_packaging.md150### Step 3: Debian Scripts (optional)COMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md241### Step 4: Final Assembly ChecksCOMMENT
LOWdocs/en/hardware/board_packaging.md50### Step 1: CPack Configuration (package.cmake)COMMENT
LOWdocs/en/hardware/board_packaging.md102### Step 2: Install Rules (install.cmake)COMMENT
LOWdocs/en/hardware/board_packaging.md150### Step 3: Debian Scripts (optional)COMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md66### Step 1: Attach motors mountsCOMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md85### Step 2: Attach the wingsCOMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md111### Step 3: Connect the electronicsCOMMENT
LOW…tol/vtol_quadplane_falcon_vertigo_hybrid_rtf_dropix.md239### Step 4: Final Assembly ChecksCOMMENT
LOWsrc/drivers/uavcan/module.yaml1__max_num_uavcan_lights: &max_num_uavcan_lights 2 # NOTE: This value must match MAX_NUM_UAVCAN_LIGHTS in rgbled.hppCODE
LOWsrc/drivers/uavcan/module.yaml2__max_num_uavcan_servos: &max_num_uavcan_servos 15 # NOTE: This value must match MAX_ACTUATORS in actuators/servo.hppCODE
LOW…/drivers/differential_pressure/ms5525dso/MS5525DSO.cpp106 // Step 1 - resetCOMMENT
LOW…/drivers/differential_pressure/ms5525dso/MS5525DSO.cpp117 // Step 2 - read calibration coefficients from promCOMMENT
LOW…/drivers/differential_pressure/ms5525dso/MS5525DSO.cpp158 // Step 3 - check CRCCOMMENT
LOWsrc/modules/ekf2/EKF/ekf_helper.cpp1065 // Step 1: conventional updateCOMMENT
LOWsrc/modules/ekf2/EKF/ekf_helper.cpp1076 // Step 2: stabilized updateCOMMENT
LOWsrc/modules/ekf2/EKF/ekf_helper.cpp1118 // Step 1: conventional updateCOMMENT
LOWsrc/modules/ekf2/EKF/ekf_helper.cpp1129 // Step 2: stabilized updateCOMMENT
Self-Referential Comments10 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMTools/run-clang-tidy.py7# This file is distributed under the University of Illinois Open SourceCOMMENT
MEDIUMTools/px4airframes/srcparser.py461 # Create a class-specific airframe group. This is needed to catch cases where an airframe type might cross classCOMMENT
MEDIUMTools/kconfig/merge_config.py100 # Create a merged configuration by loading the fragments with replace=False.COMMENT
MEDIUMTools/log_encryption/generate_keys.py4# Define the main PX4 directory (one level up from Tools)COMMENT
MEDIUMTools/log_encryption/generate_keys.py7# Define the key folder pathsCOMMENT
MEDIUMTools/log_encryption/generate_keys.py12# Define the key file pathsCOMMENT
MEDIUMdocs/scripts/gen_alt_sidebar.py29 # Create the output file pathCOMMENT
MEDIUM.github/workflows/build_all_targets.yml294 # Create a draft GitHub Release for all version tagsCOMMENT
MEDIUMvalidation/module_schema.yaml124 # Define the parameter typeCOMMENT
MEDIUMsrc/lib/parameters/px4params/markdownout.py23 # Define the groups and parameters that are specific to certain boards, to allow for a note to be added to the dCOMMENT
AI Slop Vocabulary13 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUM…/common/lockstep_scheduler/src/lockstep_components.cpp105 // but this is more robust (e.g. if a component calls this multiple times per cycle).COMMENT
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py3124 # EQUAL, UNEQUAL, etc., so we can just use the token directlySTRING
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py6108 # to _check_dep_loop_sym(). We just return immediately.STRING
LOWplatforms/nuttx/NuttX/tools/menuconfig.py2306 # information dialog just return, to avoid a confusing recursive invocationSTRING
LOWplatforms/nuttx/NuttX/tools/menuconfig.py2949 # just use whatever prompt we can find for itSTRING
MEDIUM…x/src/px4/stm/stm32_common/version/board_mcu_version.c60#define STM32_F4_ERRATA "This device can only utilize a maximum of 1MB flash safely!"COMMENT
LOWTools/mavlink_ulog_streaming.py201 # so just use the number of drops * 10 msCOMMENT
MEDIUMtest/mavsdk_tests/test_vtol_mission_wind.cpp43 tester.set_param_vt_fwd_thrust_en(1); // disable in land to be more robust in wind (less lift)CODE
MEDIUMsrc/drivers/tap_esc/tap_esc_uploader.cpp711// the need for this new function here. Ideally we would utilizeCOMMENT
MEDIUMsrc/lib/rc/crsf.cpp347 // But in practise it's robust even without that.COMMENT
MEDIUM…les/ekf2/test/sensor_simulator/createSensorDataFile.py103 # remove the first 0.5 seconds of data to be robust against faulty initialized dataCOMMENT
MEDIUM…odules/ekf2/EKF/aid_sources/gravity/gravity_fusion.cpp65 && _control_status.flags.tilt_align; // Let fake position do the initial alignment (more robust before takeoCODE
MEDIUM…ules/navigator/RTLPlanner/geofence_avoidance_planner.h154 // - Stores polygons plus safety margin in fixed-point (for robust geometry calculations)COMMENT
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHTools/px4_uploader.py512Receive data from serial port. Args: count: Number of bytes to receive timeout: OverridSTRING
HIGHTools/px4_uploader.py1801Upload firmware to connected board. Args: firmware_paths: List of firmware file paths to try STRING
HIGHTools/px4_uploader.py1868Attempt upload on a specific port. Args: port: Serial port path firmwares: List of firmSTRING
HIGHTools/px4_uploader.py2011Select appropriate firmware for the board. Args: firmwares: Available firmware options STRING
Redundant / Tautological Comments11 hits · 12 pts
SeverityFileLineSnippetContext
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py2622 # Check if the pattern is absolute and avoid stripping srctreeSTRING
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py3969 # Check if a range is in effectSTRING
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py4248 # Check if the value is valid for our typeSTRING
LOWplatforms/nuttx/NuttX/tools/kconfiglib.py5025 # Check if we have a defaultSTRING
LOWTools/fetch_file.py88 # Check if file already exists with the same sizeCOMMENT
LOWTools/px4airframes/srcparser.py429 # Check if a .post script existsCOMMENT
LOWTools/setup/docker-entrypoint.sh18# Check if the ROS_DISTRO is passed and use itCOMMENT
LOWTools/astyle/check_newlines.sh5# Check if there are files checked in that don't end in a newline (POSIX requirement)COMMENT
LOWTools/astyle/check_newlines.sh12# Check if there are files checked in that have duplicate newlines at the end (fail trailing whitespace checks)COMMENT
LOWdocs/scripts/gen_sitemap.py60 # Check if any of the include directories is in the subdir pathCOMMENT
LOWdocs/scripts/gen_alt_sidebar.py16 # Check if SUMMARY.md exists in the subdirectoryCOMMENT
Verbosity Indicators7 hits · 10 pts
SeverityFileLineSnippetContext
LOWtest/mavsdk_tests/catch2/catch.hpp12661 // No children have started. We need to check if they _can_COMMENT
LOWsrc/drivers/px4io/px4io.cpp837 * WARNING: This section handles in-air resets.COMMENT
LOW…s/distance_sensor/broadcom/afbrs50/Inc/api/argus_api.h293 * The purpose of this function is to recover from known externalCOMMENT
LOWsrc/modules/ekf2/EKF/ekf_helper.cpp1065 // Step 1: conventional updateCOMMENT
LOWsrc/modules/ekf2/EKF/ekf_helper.cpp1076 // Step 2: stabilized updateCOMMENT
LOWsrc/modules/ekf2/EKF/ekf_helper.cpp1118 // Step 1: conventional updateCOMMENT
LOWsrc/modules/ekf2/EKF/ekf_helper.cpp1129 // Step 2: stabilized updateCOMMENT
Slop Phrases4 hits · 9 pts
SeverityFileLineSnippetContext
LOW…vcan/dsdl_compiler/libuavcan_dsdl_compiler/pyratemp.py146 # but make sure to put the expression in quotation marks, otherwise:STRING
MEDIUM…tance_sensor/broadcom/afbrs50/Inc/platform/argus_irq.h52 * Here is a simple example implementation using the CMSIS functionsCOMMENT
MEDIUM…ance_sensor/broadcom/afbrs50/Inc/platform/argus_s2pi.h184 * Here is a simple example implementation for the multiple devices onCOMMENT
MEDIUMsrc/modules/mc_raptor/mc_raptor.hpp64// #define MC_RAPTOR_EMBED_POLICY // you can use this to directly embed the policy into the firmware instead of loading COMMENT
Fake / Example Data7 hits · 9 pts
SeverityFileLineSnippetContext
LOWdocs/zh/config_mc/index.md40- Frames named with "Generic" define the vehicle type, number of rotors, and "placeholder" rotor positions.CODE
LOWdocs/ko/config_mc/index.md40- Frames named with "Generic" define the vehicle type, number of rotors, and "placeholder" rotor positions.CODE
LOWdocs/en/config_mc/index.md39- Frames named with "Generic" define the vehicle type, number of rotors, and "placeholder" rotor positions.CODE
LOW…vers/osd/msp_osd/MessageDisplay/MessageDisplayTest.cpp135 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOW…vers/osd/msp_osd/MessageDisplay/MessageDisplayTest.cpp135 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOW…vers/osd/msp_osd/MessageDisplay/MessageDisplayTest.cpp139 "???|????|?? WARN: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laboCODE
LOW…vers/osd/msp_osd/MessageDisplay/MessageDisplayTest.cpp139 "???|????|?? WARN: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laboCODE
Modern Structural Boilerplate10 hits · 8 pts
SeverityFileLineSnippetContext
LOWTools/px4_uploader.py582 def set_baudrate(self, baudrate: int) -> None:CODE
LOWTools/px4_uploader.py1679 def update_erase(self, current: float, total: float) -> None:CODE
LOWTools/px4_uploader.py1690 def update_program(self, current: float, total: float) -> None:CODE
LOWTools/px4_uploader.py1702 def update_verify(self, current: float, total: float) -> None:CODE
LOWTools/px4moduledoc/__init__.py1__all__ = ["srcscanner", "srcparser"]CODE
LOWTools/px4airframes/__init__.py1__all__ = ["srcscanner", "srcparser", "xmlout", "rcout"]CODE
LOW…mavsdk_tests/integration_test_runner/process_helper.py40 def set_log_filename(self, log_filename: str) -> None:CODE
LOW…vcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py30__all__ = ['run', 'logger', 'DsdlCompilerException']CODE
LOW…vcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py35logger = logging.getLogger(__name__)CODE
LOWsrc/lib/parameters/px4params/__init__.py1__all__ = ["srcscanner", "srcparser", "xmlout"]CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWTools/ci/metadata_sync.sh5# Usage:COMMENT
LOWTools/ci/test_metadata_sync.sh5# Usage:COMMENT
LOWTools/stack_usage/checkstack.pl20# Usage:COMMENT
TODO Padding2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/lib/version/version.c304 return 0; //TODO: implement version for Darwin, Cygwin, QuRTCODE
LOWsrc/modules/ekf2/test/test_EKF_measurementSampling.cpp54 //TODO: implementCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtest/test_mavlink_param_validation.py148CODE
LOW…vcan/dsdl_compiler/libuavcan_dsdl_compiler/pyratemp.py1161CODE