Repository Analysis

ArduPilot/ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source

4.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ArduPilot/ardupilot, a C++ project with 15,462 GitHub stars. SynthScan v2.0 examined 1,123,650 lines of code across 4748 source files, recording 5444 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 4.8 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).

4.8
Adjusted Score
4.8
Raw Score
100%
Time Factor
2026-07-13
Last Push
15.5K
Stars
C++
Language
1.1M
Lines of Code
4.7K
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 0HIGH 34MEDIUM 121LOW 5289

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 5444 distinct pattern matches across 20 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 Block4220 hits · 3998 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml121# # Use to check python typing to show errors.COMMENT
LOWBlimp/Parameters.cpp21 */COMMENT
LOWBlimp/Parameters.cpp41 // @Range: 0 10COMMENT
LOWBlimp/Parameters.cpp61 // @Param: FS_GCS_ENABLECOMMENT
LOWBlimp/Parameters.cpp81COMMENT
LOWBlimp/Parameters.cpp101 // @DisplayName: Flight Mode 1COMMENT
LOWBlimp/Parameters.cpp121 // @DisplayName: Flight Mode 4COMMENT
LOWBlimp/Parameters.cpp141 // @User: AdvancedCOMMENT
LOWBlimp/Parameters.cpp161COMMENT
LOWBlimp/Parameters.cpp181 // @Range: 0.6 1.0COMMENT
LOWBlimp/Parameters.cpp201 // @Description: Sets the maximum acceleration for waypoint navigationCOMMENT
LOWBlimp/Parameters.cpp221 GSCALAR(wp_radius, "WP_RADIUS", 1.0),COMMENT
LOWBlimp/Parameters.cpp241 // @Description: Simple mode for Position control - "forward" moves blimp in +ve X direction world-frameCOMMENT
LOWBlimp/Parameters.cpp261COMMENT
LOWBlimp/Parameters.cpp281 // @Path: ../libraries/AP_Baro/AP_Baro.cppCOMMENT
LOWBlimp/Parameters.cpp301#endifCOMMENT
LOWBlimp/Parameters.cpp361 // @Param: FRAME_CLASSCOMMENT
LOWBlimp/Parameters.cpp381 // @Range: 50 500COMMENT
LOWBlimp/Log.cpp241 LOG_COMMON_STRUCTURES,COMMENT
LOWBlimp/Log.cpp261 // @Field: F2A: Fin 2 AmplitudeCOMMENT
LOWBlimp/Log.cpp321 },COMMENT
LOWBlimp/Log.cpp341 // @Field: TimeUS: Time since system startupCOMMENT
LOWBlimp/version.h1#pragma onceCOMMENT
LOWBlimp/config.h1//COMMENT
LOWBlimp/config.h21#ifndef ARMING_DELAY_SECCOMMENT
LOWBlimp/config.h41// Radio failsafe while using RC_overrideCOMMENT
LOWBlimp/config.h61#ifndef FS_EKF_THRESHOLD_DEFAULTCOMMENT
LOWBlimp/config.h81# define FLIGHT_MODE_5 Mode::Number::MANUALCOMMENT
LOWBlimp/config.h121 MASK_LOG_MOTBATTCOMMENT
LOWBlimp/Loiter.cpp1#include "Blimp.h"COMMENT
LOWBlimp/Loiter.cpp21 // @Description: X axis velocity controller I gain maximum. Constrains the maximum that the I term will outputCOMMENT
LOWBlimp/Loiter.cpp41 // @DisplayName: X axis velocity controller target frequency in HzCOMMENT
LOWBlimp/Loiter.cpp61 // @Units: HzCOMMENT
LOWBlimp/Loiter.cpp81 // @Range: 0 0.02COMMENT
LOWBlimp/Loiter.cpp101 // @Range: 0.01 0.5COMMENT
LOWBlimp/Loiter.cpp121 // @Description: Y axis velocity controller D gain. Compensates for short-term change in desired Y velocity vs actuCOMMENT
LOWBlimp/Loiter.cpp141 // @Param: VELY_FLTECOMMENT
LOWBlimp/Loiter.cpp161 // @Increment: 0.5COMMENT
LOWBlimp/Loiter.cpp181 // @Range: 1 8COMMENT
LOWBlimp/Loiter.cpp201 // @Range: 0.01 2.0COMMENT
LOWBlimp/Loiter.cpp221 // @Description: Z axis velocity controller feed forwardCOMMENT
LOWBlimp/Loiter.cpp241COMMENT
LOWBlimp/Loiter.cpp261 // @Increment: 0.01COMMENT
LOWBlimp/Loiter.cpp281 // @User: AdvancedCOMMENT
LOWBlimp/Loiter.cpp301 // @Range: 0 1COMMENT
LOWBlimp/Loiter.cpp321 // @Description: Yaw axis velocity controller target frequency in HzCOMMENT
LOWBlimp/Loiter.cpp341 // @User: StandardCOMMENT
LOWBlimp/Loiter.cpp361 // @Increment: 0.0001COMMENT
LOWBlimp/Loiter.cpp381 // @Increment: 0.005COMMENT
LOWBlimp/Loiter.cpp401 // @Range: 0.0 0.05COMMENT
LOWBlimp/Loiter.cpp421 // @DisplayName: X axis position controller error frequency in HzCOMMENT
LOWBlimp/Loiter.cpp441 // @User: AdvancedCOMMENT
LOWBlimp/Loiter.cpp461 // @User: AdvancedCOMMENT
LOWBlimp/Loiter.cpp481 // @Increment: 0.01COMMENT
LOWBlimp/Loiter.cpp501 // @Range: 0 0.5COMMENT
LOWBlimp/Loiter.cpp521 // @Param: POSY_FLTDCOMMENT
LOWBlimp/Loiter.cpp541 // @User: AdvancedCOMMENT
LOWBlimp/Loiter.cpp561 AP_SUBGROUPINFO(pid_pos_y, "POSY_", 5, Loiter, AC_PID),COMMENT
LOWBlimp/Loiter.cpp581 // @Increment: 0.01COMMENT
LOWBlimp/Loiter.cpp601 // @Range: 5 100COMMENT
4160 more matches not shown…
Hyper-Verbose Identifiers503 hits · 393 pts
SeverityFileLineSnippetContext
LOWTools/mavproxy_modules/sitl_calibration.py446 def cmd_sitl_autonomous_magcal(self, args):CODE
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py87 def update_status_from_mavlink(self, m):CODE
LOWTools/autotest/helicopter.py40 def subgroupvarptr_activation_params(self):CODE
LOWTools/autotest/helicopter.py53 def get_position_armable_modes_list():CODE
LOWTools/autotest/helicopter.py1338 def autotune_land_and_save_gains(self):CODE
LOWTools/autotest/vehicle_test_suite.py4654 def assert_message_field_values(self, m, fieldvalues, verbose=True, epsilon=None):CODE
LOWTools/autotest/vehicle_test_suite.py4659 def assert_cached_message_field_values(self, message, fieldvalues, verbose=True, very_verbose=False, epsilon=None):CODE
LOWTools/autotest/vehicle_test_suite.py4666 def assert_received_message_field_values(self,CODE
LOWTools/autotest/vehicle_test_suite.py5163 def install_script_content_context(self, scriptname, content):CODE
LOWTools/autotest/vehicle_test_suite.py5170 def install_example_script_context(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py5176 def install_test_script_context(self, scriptnames):CODE
LOWTools/autotest/vehicle_test_suite.py5185 def install_test_scripts_context(self, *args, **kwargs):CODE
LOWTools/autotest/vehicle_test_suite.py5189 def install_test_modules_context(self):CODE
LOWTools/autotest/vehicle_test_suite.py5195 def install_mavlink_module_context(self):CODE
LOWTools/autotest/vehicle_test_suite.py5201 def install_applet_script_context(self, scriptname, **kwargs):CODE
LOWTools/autotest/vehicle_test_suite.py5211 def ardupilot_stores_frame_for_cmd(self, t):CODE
LOWTools/autotest/vehicle_test_suite.py5523 def sitl_home_string_from_mission(self, filename):CODE
LOWTools/autotest/vehicle_test_suite.py5528 def sitl_home_string_from_mission_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py5533 def get_home_tuple_from_mission(self, filename):CODE
LOWTools/autotest/vehicle_test_suite.py5542 def get_home_location_from_mission(self, filename):CODE
LOWTools/autotest/vehicle_test_suite.py5546 def get_home_tuple_from_mission_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py5556 def load_mission_from_filepath(self,CODE
LOWTools/autotest/vehicle_test_suite.py5753 def check_fence_upload_download(self, items):CODE
LOWTools/autotest/vehicle_test_suite.py5761 def check_mission_upload_download(self, items, strict=True):CODE
LOWTools/autotest/vehicle_test_suite.py5770 def check_rally_upload_download(self, items):CODE
LOWTools/autotest/vehicle_test_suite.py5779 def check_dflog_message_rates(self, log_filepath, message_rates):CODE
LOWTools/autotest/vehicle_test_suite.py6060 def send_mavlink_disarm_command(self):CODE
LOWTools/autotest/vehicle_test_suite.py6066 def send_mavlink_run_prearms_command(self):CODE
LOWTools/autotest/vehicle_test_suite.py6069 def analog_rangefinder_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py6078 def set_analog_rangefinder_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py6909 # def context_start_custom_binary(self, extra_defines={}):COMMENT
LOWTools/autotest/vehicle_test_suite.py7486 def do_set_mode_via_command_long(self, mode, timeout=30):CODE
LOWTools/autotest/vehicle_test_suite.py7489 def do_set_mode_via_command_int(self, mode, timeout=30):CODE
LOWTools/autotest/vehicle_test_suite.py7492 def mavproxy_do_set_mode_via_command_long(self, mavproxy, mode, timeout=30):CODE
LOWTools/autotest/vehicle_test_suite.py8560 def _rc_overrides_send_single(self, chan, pwm):CODE
LOWTools/autotest/vehicle_test_suite.py8570 def _rc_overrides_release_single(self, chan):CODE
LOWTools/autotest/vehicle_test_suite.py8580 def _check_rc_overrides_cleared_by_pilot_input(self,CODE
LOWTools/autotest/vehicle_test_suite.py9172 def script_example_source_path(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py9178 def script_applet_source_path(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py9181 def script_modules_source_path(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py1635 def dump_dataid_counts_as_progress_messages(self):CODE
LOWTools/autotest/vehicle_test_suite.py1639 def dump_sensor_id_poll_counts_as_progress_messages(self):CODE
LOWTools/autotest/vehicle_test_suite.py1712 def send_mavlite_param_request_read(self, parameter_name):CODE
LOWTools/autotest/vehicle_test_suite.py1735 def send_mavlite_command_long(CODE
LOWTools/autotest/vehicle_test_suite.py2162 def autotest_connection_string_to_ardupilot(self):CODE
LOWTools/autotest/vehicle_test_suite.py2187 def repeatedly_apply_parameter_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py2199 def repeatedly_apply_parameter_filepath_mavproxy(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py2213 def apply_defaultfile_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py2225 def count_expected_fence_lines_in_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py2242 def load_fence_using_mavproxy(self, mavproxy, filename):CODE
LOWTools/autotest/vehicle_test_suite.py2288 def reboot_check_valgrind_log(self):CODE
LOWTools/autotest/vehicle_test_suite.py2301 def run_cmd_enable_high_latency(self, new_state, run_cmd=None):CODE
LOWTools/autotest/vehicle_test_suite.py2373 def send_cmd_enter_cpu_lockup(self):CODE
LOWTools/autotest/vehicle_test_suite.py2530 def test_adsb_send_threatening_adsb_message(self, here, offset_ne=None):CODE
LOWTools/autotest/vehicle_test_suite.py2551 def subgroupvarptr_activation_params(self):CODE
LOWTools/autotest/vehicle_test_suite.py2569 def test_parameter_documentation_get_all_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py3096 def initialise_after_reboot_sitl(self):CODE
LOWTools/autotest/vehicle_test_suite.py3262 def apply_default_parameter_list(self):CODE
LOWTools/autotest/vehicle_test_suite.py3352 def set_heartbeat_interval_ms(self, interval_ms):CODE
LOWTools/autotest/vehicle_test_suite.py3673 def assert_home_position_not_set(self):CODE
443 more matches not shown…
Excessive Try-Catch Wrapping161 hits · 167 pts
SeverityFileLineSnippetContext
LOWTools/gittools/pre_commit_copyright.py89 except Exception as e: # noqa: BLE001 Path.read_text() can raise many exceptionsCODE
MEDIUMTools/gittools/pre_commit_copyright.py90 print(f"Error reading {file_path}: {e}")CODE
LOWTools/autotest/bisect-helper.py378except Exception as e: # noqa: BLE001CODE
MEDIUMTools/autotest/vehicle_test_suite.py305def connect(self):CODE
MEDIUMTools/autotest/vehicle_test_suite.py3937def verify_logs(test_log_num):CODE
LOWTools/autotest/vehicle_test_suite.py312 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py2440 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py3544 except Exception:CODE
LOWTools/autotest/vehicle_test_suite.py3584 except Exception:CODE
LOWTools/autotest/vehicle_test_suite.py3851 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py8883 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py9283 except Exception as msg:CODE
LOWTools/autotest/vehicle_test_suite.py9477 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py9500 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py9510 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py9571 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10589 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10950 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11001 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11091 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11122 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11716 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11783 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11938 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py13426 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py13585 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py14944 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py15306 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py15311 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py15339 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/autotest.py103 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/autotest.py117 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/autotest.py253 except Exception: # noqa: BLE001CODE
LOWTools/autotest/autotest.py756 except Exception as msg: # noqa: BLE001CODE
LOWTools/autotest/autotest.py1274 except Exception:CODE
LOWTools/autotest/quadplane.py1511 except Exception:CODE
LOWTools/autotest/test_build_options.py474 except Exception:CODE
LOWTools/autotest/balancebot.py88 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/examples.py134 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/arduplane.py314 except Exception as e:CODE
LOWTools/autotest/arduplane.py426 except Exception as e:CODE
LOWTools/autotest/arduplane.py527 except Exception as e:CODE
LOWTools/autotest/arduplane.py543 except Exception as e:CODE
LOWTools/autotest/arduplane.py4585 except Exception as e:CODE
LOWTools/autotest/arduplane.py4923 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/sim_vehicle.py318 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/sim_vehicle.py700 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/sim_vehicle.py799 except Exception as e: # noqa: BLE001CODE
MEDIUMTools/autotest/sim_vehicle.py336def run_gui(cmd_opts):CODE
LOWTools/autotest/arducopter.py2378 except Exception as e:CODE
LOWTools/autotest/arducopter.py2505 except Exception as e:CODE
LOWTools/autotest/arducopter.py2937 except Exception as e:CODE
LOWTools/autotest/arducopter.py3082 except Exception as e:CODE
LOWTools/autotest/arducopter.py3934 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/arducopter.py5606 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/arducopter.py5958 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/arducopter.py10473 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/arducopter.py11737 except Exception: # noqa: BLE001CODE
LOWTools/autotest/arducopter.py11765 except Exception: # noqa: BLE001CODE
LOWTools/autotest/arducopter.py11786 except Exception: # noqa: BLE001CODE
101 more matches not shown…
Deep Nesting203 hits · 166 pts
SeverityFileLineSnippetContext
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py208CODE
LOWTools/autotest/bisect-helper.py217CODE
LOWTools/autotest/vehicle_test_suite.py1275CODE
LOWTools/autotest/vehicle_test_suite.py1778CODE
LOWTools/autotest/vehicle_test_suite.py2199CODE
LOWTools/autotest/vehicle_test_suite.py2663CODE
LOWTools/autotest/vehicle_test_suite.py2979CODE
LOWTools/autotest/vehicle_test_suite.py3864CODE
LOWTools/autotest/vehicle_test_suite.py3911CODE
LOWTools/autotest/vehicle_test_suite.py4603CODE
LOWTools/autotest/vehicle_test_suite.py4690CODE
LOWTools/autotest/vehicle_test_suite.py5225CODE
LOWTools/autotest/vehicle_test_suite.py5397CODE
LOWTools/autotest/vehicle_test_suite.py5884CODE
LOWTools/autotest/vehicle_test_suite.py6503CODE
LOWTools/autotest/vehicle_test_suite.py6711CODE
LOWTools/autotest/vehicle_test_suite.py7369CODE
LOWTools/autotest/vehicle_test_suite.py7985CODE
LOWTools/autotest/vehicle_test_suite.py8911CODE
LOWTools/autotest/vehicle_test_suite.py8957CODE
LOWTools/autotest/vehicle_test_suite.py10294CODE
LOWTools/autotest/vehicle_test_suite.py10862CODE
LOWTools/autotest/vehicle_test_suite.py10958CODE
LOWTools/autotest/vehicle_test_suite.py11101CODE
LOWTools/autotest/vehicle_test_suite.py11242CODE
LOWTools/autotest/vehicle_test_suite.py12091CODE
LOWTools/autotest/vehicle_test_suite.py13130CODE
LOWTools/autotest/vehicle_test_suite.py13269CODE
LOWTools/autotest/vehicle_test_suite.py13515CODE
LOWTools/autotest/vehicle_test_suite.py13884CODE
LOWTools/autotest/vehicle_test_suite.py14104CODE
LOWTools/autotest/vehicle_test_suite.py15137CODE
LOWTools/autotest/vehicle_test_suite.py15425CODE
LOWTools/autotest/vehicle_test_suite.py16574CODE
LOWTools/autotest/vehicle_test_suite.py3937CODE
LOWTools/autotest/vehicle_test_suite.py10386CODE
LOWTools/autotest/vehicle_test_suite.py12100CODE
LOWTools/autotest/autotest.py407CODE
LOWTools/autotest/autotest.py711CODE
LOWTools/autotest/quadplane.py2132CODE
LOWTools/autotest/ardusub.py1146CODE
LOWTools/autotest/ardusub.py1349CODE
LOWTools/autotest/antennatracker.py208CODE
LOWTools/autotest/test_build_options.py142CODE
LOWTools/autotest/test_build_options.py203CODE
LOWTools/autotest/arduplane.py346CODE
LOWTools/autotest/arduplane.py4976CODE
LOWTools/autotest/sim_vehicle.py260CODE
LOWTools/autotest/sim_vehicle.py336CODE
LOWTools/autotest/sim_vehicle.py663CODE
LOWTools/autotest/sim_vehicle.py736CODE
LOWTools/autotest/sim_vehicle.py1083CODE
LOWTools/autotest/arducopter.py3626CODE
LOWTools/autotest/arducopter.py3862CODE
LOWTools/autotest/arducopter.py4861CODE
LOWTools/autotest/arducopter.py5557CODE
LOWTools/autotest/arducopter.py6139CODE
LOWTools/autotest/arducopter.py6578CODE
LOWTools/autotest/arducopter.py9597CODE
LOWTools/autotest/arducopter.py12019CODE
143 more matches not shown…
Self-Referential Comments38 hits · 118 pts
SeverityFileLineSnippetContext
MEDIUMTools/mavproxy_modules/magcal_graph.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/mavproxy_modules/magcal_graph.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/mavproxy_modules/sitl_calibration.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/mavproxy_modules/sitl_calibration.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/mavproxy_modules/lib/geodesic_grid.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/mavproxy_modules/lib/geodesic_grid.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/mavproxy_modules/lib/magcal_graph_ui.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/mavproxy_modules/lib/magcal_graph_ui.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/autotest/run_in_terminal_window.sh48 # Create a new pane to runCOMMENT
MEDIUM…s/autotest/unittest/extract_param_defaults_unittest.py154 # Define a list of parameter namesCOMMENT
MEDIUM…s/autotest/unittest/extract_param_defaults_unittest.py169 # Define a list of parameter namesCOMMENT
MEDIUMTools/autotest/unittest/annotate_params_unittest.py38 # Create a temporary directoryCOMMENT
MEDIUMTools/autotest/unittest/annotate_params_unittest.py41 # Create a temporary fileCOMMENT
MEDIUMTools/autotest/unittest/annotate_params_unittest.py44 # Create a dictionary of parameter documentationCOMMENT
MEDIUMTools/autotest/unittest/annotate_params_unittest.py277 # Define the inputSTRING
MEDIUMTools/autotest/unittest/annotate_params_unittest.py293 # Define the expected outputSTRING
MEDIUMTools/ros2/ardupilot_sitl/src/ardupilot_sitl/launch.py499 # Create an instance directory to store eeprom.bin.COMMENT
MEDIUMTools/ardupilotwaf/ap_library.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/ardupilotwaf/ap_library.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/ardupilotwaf/cmake.py5# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/ardupilotwaf/cmake.py10# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/ardupilotwaf/cxx_checks.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/ardupilotwaf/cxx_checks.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/ardupilotwaf/build_summary.py5# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/ardupilotwaf/build_summary.py10# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMlibraries/AP_Camera/examples/gst_rtsp_to_wx.py74 # Create a sink to get dataCOMMENT
MEDIUMlibraries/AP_Camera/examples/gst_udp_to_wx.py77 # Create a sink to get dataCOMMENT
MEDIUM…_Motors/examples/AP_Motors_test/run_heli_comparison.py211 # Create the new directoryCOMMENT
MEDIUMlibraries/AP_NavEKF3/derivation/generate_2.py439 # Define the state vectorsCOMMENT
MEDIUMlibraries/AP_NavEKF3/derivation/generate_1.py450 # Define the state vectorsCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/icosahedron.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/icosahedron.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/grid.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/grid.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/plot.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/plot.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/geodesic_grid.py5# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/geodesic_grid.py10# This file is distributed in the hope that it will be useful, butCOMMENT
Unused Imports97 hits · 96 pts
SeverityFileLineSnippetContext
LOWTools/mavproxy_modules/magcal_graph.py63CODE
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py20CODE
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py24CODE
LOWTools/autotest/vehicle_test_suite.py8CODE
LOWTools/autotest/arducopter.py7CODE
LOWTools/autotest/pysim/util.py5CODE
LOWTools/autotest/param_metadata/xmlemit.py7CODE
LOW…ests/test/ardupilot_dds_tests/test_joy_msg_received.py31CODE
LOW…ests/test/ardupilot_dds_tests/test_joy_msg_received.py38CODE
LOWTools/scripts/build_binaries.py11CODE
LOWTools/scripts/filter_size_compare_branches_csv.py7CODE
LOWTools/scripts/test_new_boards.py19CODE
LOWTools/scripts/make_intel_hex.py5CODE
LOWTools/scripts/param_check.py32CODE
LOWTools/scripts/check_branch_conventions.py18CODE
LOWTools/scripts/convert_param_scale.py15CODE
LOWTools/scripts/param_check_all.py9CODE
LOWTools/scripts/size_compare_branches.py19CODE
LOWTools/scripts/param_check_unittests.py9CODE
LOWTools/scripts/tempcal_IMU.py26CODE
LOWTools/scripts/tempcal_IMU.py27CODE
LOWTools/scripts/tfminiplus.py8CODE
LOWTools/scripts/build_boards.py16CODE
LOWTools/scripts/build_script_base.py7CODE
LOWTools/scripts/build_examples.py3CODE
LOWTools/scripts/build_peripherals.py10CODE
LOWTools/scripts/build_peripherals.py12CODE
LOWTools/scripts/size_history.py18CODE
LOWTools/scripts/CAN/CAN_playback.py13CODE
LOWTools/scripts/CAN/CAN_playback.py14CODE
LOWTools/scripts/CAN/CAN_playback.py16CODE
LOWTools/scripts/CAN/fix2_gap.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py10CODE
LOWTools/ardupilotwaf/esp32.py10CODE
LOWTools/ardupilotwaf/esp32.py11CODE
LOWTools/ardupilotwaf/esp32.py11CODE
LOWTools/ardupilotwaf/esp32.py12CODE
LOWTools/ardupilotwaf/esp32.py16CODE
LOWTools/ardupilotwaf/esp32.py19CODE
LOWTools/ardupilotwaf/esp32.py20CODE
LOWTools/ardupilotwaf/esp32.py21CODE
LOWTools/ardupilotwaf/gbenchmark.py9CODE
LOWTools/ardupilotwaf/gbenchmark.py9CODE
LOWTools/ardupilotwaf/gbenchmark.py9CODE
LOWTools/ardupilotwaf/gbenchmark.py12CODE
LOWTools/ardupilotwaf/embed.py12CODE
LOWTools/ardupilotwaf/chibios.py9CODE
LOWTools/ardupilotwaf/chibios.py16CODE
LOWTools/ardupilotwaf/dronecangen.py9CODE
LOWTools/ardupilotwaf/dronecangen.py10CODE
LOWTools/ardupilotwaf/dronecangen.py13CODE
LOWTools/ardupilotwaf/mavgen.py10CODE
LOWTools/ardupilotwaf/mavgen.py10CODE
LOWTools/ardupilotwaf/mavgen.py11CODE
LOWTools/ardupilotwaf/toolchain.py17CODE
37 more matches not shown…
Cross-File Repetition19 hits · 95 pts
SeverityFileLineSnippetContext
HIGHTools/gittools/pre_commit_copyright.py0ardupilot imu filter test class this program is free software: you can redistribute it and/or modify it under the terms STRING
HIGHTools/FilterTestTool/BiquadFilter.py0ardupilot imu filter test class this program is free software: you can redistribute it and/or modify it under the terms STRING
HIGHTools/FilterTestTool/run_filter_test.py0ardupilot imu filter test class this program is free software: you can redistribute it and/or modify it under the terms STRING
HIGHTools/FilterTestTool/FilterTest.py0ardupilot imu filter test class this program is free software: you can redistribute it and/or modify it under the terms STRING
HIGHTools/autotest/vehicle_test_suite.py0in lockup plane should copy rc inputs to rc outputsSTRING
HIGHTools/autotest/quadplane.py0in lockup plane should copy rc inputs to rc outputsSTRING
HIGHTools/autotest/arduplane.py0in lockup plane should copy rc inputs to rc outputsSTRING
HIGHTools/autotest/arduplane.py0ensure a guided destination outside the fence is rejectedSTRING
HIGHTools/autotest/arducopter.py0ensure a guided destination outside the fence is rejectedSTRING
HIGHTools/autotest/rover.py0ensure a guided destination outside the fence is rejectedSTRING
HIGHTools/autotest/arduplane.py0test utm_global_position waypoint fields in auto and guidedSTRING
HIGHTools/autotest/arducopter.py0test utm_global_position waypoint fields in auto and guidedSTRING
HIGHTools/autotest/rover.py0test utm_global_position waypoint fields in auto and guidedSTRING
HIGH…ests/test/ardupilot_dds_tests/test_joy_msg_received.py0try to arm. returns true on success, or false if arming fails or times out.STRING
HIGH…upilot_dds_tests/ardupilot_dds_tests/copter_takeoff.py0try to arm. returns true on success, or false if arming fails or times out.STRING
HIGH…s_tests/ardupilot_dds_tests/plane_waypoint_follower.py0try to arm. returns true on success, or false if arming fails or times out.STRING
HIGH…ests/test/ardupilot_dds_tests/test_joy_msg_received.py0try to switch mode. returns true on success, or false if mode switch fails or times out.STRING
HIGH…upilot_dds_tests/ardupilot_dds_tests/copter_takeoff.py0try to switch mode. returns true on success, or false if mode switch fails or times out.STRING
HIGH…s_tests/ardupilot_dds_tests/plane_waypoint_follower.py0try to switch mode. returns true on success, or false if mode switch fails or times out.STRING
Redundant / Tautological Comments48 hits · 60 pts
SeverityFileLineSnippetContext
LOWTools/autotest/vehicle_test_suite.py10807 # Check if we got the expected message or an unexpected oneCOMMENT
LOWTools/autotest/arduplane.py6901 # Check if all servos wiggleCOMMENT
LOWTools/autotest/arduplane.py4023 "FENCE_ACTION": 0, # Set action to reportCODE
LOWTools/autotest/arduplane.py4064 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4105 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4142 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4194 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4257 "FENCE_ACTION": 8, # Set action to AUTOLAND if possibleCODE
LOWTools/autotest/arduplane.py4323 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4392 "FENCE_ACTION": 6, # Set action to GUIDEDCODE
LOWTools/autotest/arducopter.py11538 # Check if the vehicle is stuck.COMMENT
LOWTools/autotest/rover.py6209 # Set FRAME_CLASS to start receiving WATER_DEPTH messages & logging DPTHCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py102 # Check if the defaults dictionary contains the correct parameters and valuesCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py160 # Check if the parameters were sorted correctlyCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py175 # Check if the parameters were sorted correctlyCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py194 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py206 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py219 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py233 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py248 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py263 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py315 # Check if the print function was called with the correct parametersCOMMENT
LOWTools/autotest/unittest/annotate_params_unittest.py454 # Check if the SystemExit exception contains the expected messageSTRING
LOWTools/autotest/unittest/annotate_params_unittest.py487 # Check if the parameter name was loggedSTRING
LOWTools/autotest/unittest/annotate_params_unittest.py522 # Check if the warnings were loggedSTRING
LOWTools/autotest/unittest/annotate_params_unittest.py535 # Check if the file is still emptySTRING
LOWTools/autotest/unittest/annotate_params_unittest.py322 # Check if the file has been updated correctlySTRING
LOWTools/autotest/logger_metadata/parse.py212 # Loop through the listCOMMENT
LOWTools/autotest/logger_metadata/parse.py227 # Loop through the listCOMMENT
LOWTools/autotest/logger_metadata/parse.py247 # Check if the defined format for this field contains its own multiplierCOMMENT
LOWTools/autotest/logger_metadata/parse.py253 # Check if we have a defined prefix for this multiplierCOMMENT
LOWTools/scripts/annotate_params.py94 # Check if the locally cached file existsCOMMENT
LOWTools/scripts/annotate_params.py318 # Check if the target is a file or a directoryCOMMENT
LOWTools/scripts/param_check.py219 # Check if the bit is set, and if so, if it's described in the metadataCOMMENT
LOWTools/scripts/param_check.py507 # Check if any files failed (i.e. have error messages)COMMENT
LOWTools/environment_install/install-prereqs-ubuntu.sh184# Check if we need to manually install libtool-binCOMMENT
LOWTools/environment_install/install-prereqs-ubuntu.sh394# Check if we need to manually install realpathCOMMENT
LOWTools/environment_install/install-prereqs-ubuntu.sh400# Check if we need to manually install libtool-binCOMMENT
LOWTools/environment_install/install-prereqs-ubuntu.sh446 # Check if venv already exists in ARDUPILOT_ROOT (check both venv-ardupilot and venv)COMMENT
LOWTools/environment_install/install-prereqs-arch.sh90 # Check if file exists and verify checksumCOMMENT
LOWTools/ardupilotwaf/esp32.py53 #Check if esp-idf env are loaded, or load itCOMMENT
LOWTools/debug/crash_debugger.py83 # Check if already in hardfaultCOMMENT
LOW…es/AP_Motors/examples/AP_Motors_test/MotorTestSweep.sh3# Output results to files for comparisonCOMMENT
LOW…M_Control/examples/AP_FW_Controller_test/TestMatrix.sh3# Output results to files for comparisonCOMMENT
LOWlibraries/SITL/examples/follow-copter.sh30# Check if SITL copter has been builtCOMMENT
LOWlibraries/SITL/examples/follow-copter.sh39# Check if Platform is Native Linux, WSL or CygwinCOMMENT
LOWlibraries/SITL/examples/Airsim/follow-copter.sh23# Check if Platform is Native Linux, WSL or CygwinCOMMENT
LOWlibraries/SITL/examples/JSON/pybullet/walking_robot.py212 # Check if the fame is in expected orderCOMMENT
Cross-Language Confusion10 hits · 60 pts
SeverityFileLineSnippetContext
HIGHTools/autotest/arduplane.py3335 # Before the fix WIND.speed was wind.length() (3D); after the fix itCOMMENT
HIGHTools/autotest/arduplane.py3823 if gyro.length() > gyro_threshold:CODE
HIGHTools/autotest/arduplane.py3826 if accel.length() > accel_threshold:CODE
HIGHTools/autotest/arduplane.py3830 if gyro.length() > gyro_threshold*2:CODE
HIGHTools/autotest/arduplane.py3833 if accel.length() > accel_threshold*2:CODE
HIGHTools/autotest/arducopter.py9998 if vel.length() > 0.5:CODE
HIGHTools/ardupilotwaf/chibios.py664 rule="touch Makefile && BUILDDIR=${BUILDDIR_REL} BUILDROOT=${BUILDROOT} CRASHCATCHER=${CC_ROOT_REL} CHIBIOS=${CHSTRING
HIGHlibraries/AP_InertialSensor/examples/coning.py39 theta = vec.length()CODE
HIGHlibraries/AP_Math/tools/geodesic_grid/icosahedron.py51 return (1.0 / self.length()) * selfCODE
HIGHlibraries/AP_Math/tools/geodesic_grid/grid.py22 alpha = a.length() / (2.0 * ico.g)CODE
AI Slop Vocabulary20 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMTools/autotest/autotest.py503 # we are running in conjunction with a supplementary appCOMMENT
MEDIUMTools/autotest/arduplane.py3467 # in the future when the test is more robust.COMMENT
LOWTools/autotest/arduplane.py2839 # mcReady tests don't work ATM, so just return early:COMMENT
MEDIUMTools/scripts/unpack_mp.sh4# to facilitate upgrade of existing MissionPlanner installsCOMMENT
MEDIUMTools/AP_Periph/AP_Periph.cpp39// but it forms part of a series of measures to give a robust recoveryCOMMENT
LOWTools/ardupilotwaf/chibios.py104 # Solution: simply call "python.exe" instead of 'python' which magically calls it from the windowsCOMMENT
MEDIUMlibraries/AP_ADSB/AP_ADSB_uAvionix_MAVLink.cpp145 // utilize the upper unused 8bits of the icao with special flags.COMMENT
MEDIUMlibraries/AP_HAL_Linux/RCOutput_Bebop.cpp212 // sync our state from status. This makes us more robust to i2c errorsCOMMENT
MEDIUMlibraries/AP_Logger/LogStructure.h89// Essentially "format" simply tells you the C-type, and format-type hCOMMENT
MEDIUMlibraries/AP_L1_Control/AP_L1_Control.cpp451 // point where the commands cross over to achieve a seamless transferCOMMENT
MEDIUMlibraries/AP_NavEKF3/AP_NavEKF3_MagFusion.cpp174 // attempt to use EKF-GSF estimate if available as it is more robust to GPS glitchesCOMMENT
MEDIUMlibraries/AP_NavEKF3/AP_NavEKF3_MagFusion.cpp264 // use the EKF-GSF yaw estimator output as this is more robust than the EKF can achieve without a yaw measurCOMMENT
MEDIUMlibraries/AP_InertialSensor/AP_InertialSensor.cpp779 // assume this is the same sensor and save its ID to allow seamlessCOMMENT
MEDIUMlibraries/AP_InertialSensor/AP_InertialSensor.cpp851 // assume this is the same sensor and save its ID to allow seamlessCOMMENT
MEDIUMlibraries/SITL/SIM_SensAItion.cpp77 // However, the most robust way in ArduPilot SITL is to use theCOMMENT
MEDIUMlibraries/AP_Param/AP_Param.cpp742 // this makes us more robust to power off while adding a variableCOMMENT
MEDIUMlibraries/AP_GPS/GPS_Backend.cpp361 // if the reported distance is less then the minimum separation it's not sufficiently robustCOMMENT
MEDIUMlibraries/AP_GPS/AP_GPS_NMEA.h33/// robust in the face of occasional corruption in the input stream. ItCOMMENT
MEDIUMlibraries/GCS_MAVLink/GCS_FTP.cpp547 // reset our scratch area so we don't leak data, and can leverage trimmingCOMMENT
MEDIUMlibraries/GCS_MAVLink/GCS_Common.cpp3193 // note that this is not quite right; we could be more nuancedCOMMENT
Dead Code28 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUMTools/autotest/vehicle_test_suite.py6460CODE
MEDIUMTools/autotest/vehicle_test_suite.py6462CODE
MEDIUMTools/autotest/vehicle_test_suite.py6471CODE
MEDIUMTools/autotest/arduplane.py2845CODE
MEDIUMTools/autotest/arduplane.py2847CODE
MEDIUMTools/autotest/arduplane.py2850CODE
MEDIUMTools/autotest/arduplane.py2853CODE
MEDIUMTools/autotest/arduplane.py2855CODE
MEDIUMTools/autotest/arduplane.py2856CODE
MEDIUMTools/autotest/arduplane.py2860CODE
MEDIUMTools/autotest/arduplane.py2861CODE
MEDIUMTools/autotest/arduplane.py2862CODE
MEDIUMTools/autotest/arduplane.py2863CODE
MEDIUMTools/autotest/arduplane.py2865CODE
MEDIUMTools/autotest/arduplane.py2866CODE
MEDIUMTools/autotest/arduplane.py2869CODE
MEDIUMTools/autotest/arduplane.py2870CODE
MEDIUMTools/autotest/arduplane.py2872CODE
MEDIUMTools/autotest/arduplane.py2873CODE
MEDIUMTools/autotest/arduplane.py2876CODE
MEDIUMTools/autotest/arduplane.py2877CODE
MEDIUMTools/autotest/arduplane.py2880CODE
MEDIUMTools/autotest/arduplane.py2881CODE
MEDIUMTools/autotest/arducopter.py15360CODE
MEDIUMTools/autotest/arducopter.py15371CODE
MEDIUMTools/autotest/rover.py2679CODE
MEDIUMTools/autotest/rover.py2682CODE
MEDIUMTools/scripts/decode_ICSR.py137CODE
Verbosity Indicators24 hits · 40 pts
SeverityFileLineSnippetContext
LOWTools/autotest/quadplane.py651 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/quadplane.py664 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOWTools/autotest/quadplane.py674 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/quadplane.py708 # Step 4: take off as a copter land as a plane, make sure we trackCOMMENT
LOWTools/autotest/sim_vehicle.py697 # Step 1: Attempt the lookupCOMMENT
LOWTools/autotest/sim_vehicle.py708 # Step 2: Validate the response object (Handles status_code 403 if no exception was raised)COMMENT
LOWTools/autotest/sim_vehicle.py717 # Step 3: Success logicCOMMENT
LOWTools/autotest/arducopter.py8792 # Step 1: inject actual motor noise and use the FFT to track itCOMMENT
LOWTools/autotest/arducopter.py8807 # Step 2: add a second harmonic and check the first is still trackedCOMMENT
LOWTools/autotest/arducopter.py8826 # Step 3: switch harmonics mid flight and check for trackingCOMMENT
LOWTools/autotest/arducopter.py8851 # Step 4: dynamic harmonicCOMMENT
LOWTools/autotest/arducopter.py8924 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/arducopter.py8962 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOWTools/autotest/arducopter.py8983 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/arducopter.py9023 # Step 4: loop sample rate test with larger windowCOMMENT
LOWTools/autotest/arducopter.py9079 # Step 1: inject actual motor noise and use the FFT to track itCOMMENT
LOWTools/autotest/arducopter.py9120 # Step 2: now rerun the test and check that the peak is squashedCOMMENT
LOWTools/autotest/arducopter.py9134 # Step 3: add a second harmonic and check the first is still trackedCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp266 // Step 1: Calculate the vector from the tether anchor to the vehicleCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp270 // Step 2: Check if tether is taut (length exceeds maximum allowed length) or stuckCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp308 // Step 3: Calculate the weight of the tether being liftedCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp312 // Step 4: Calculate the tension forceCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp315 // Step 5: Apply the total force to the vehicleCOMMENT
LOWlibraries/SITL/SIM_JSON.cpp421 // So we need to check if it changed and act accordinglyCOMMENT
Structural Annotation Overuse24 hits · 39 pts
SeverityFileLineSnippetContext
LOWTools/autotest/quadplane.py651 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/quadplane.py664 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOWTools/autotest/quadplane.py674 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/quadplane.py708 # Step 4: take off as a copter land as a plane, make sure we trackCOMMENT
LOWTools/autotest/sim_vehicle.py697 # Step 1: Attempt the lookupCOMMENT
LOWTools/autotest/sim_vehicle.py708 # Step 2: Validate the response object (Handles status_code 403 if no exception was raised)COMMENT
LOWTools/autotest/sim_vehicle.py717 # Step 3: Success logicCOMMENT
LOWTools/autotest/arducopter.py8792 # Step 1: inject actual motor noise and use the FFT to track itCOMMENT
LOWTools/autotest/arducopter.py8807 # Step 2: add a second harmonic and check the first is still trackedCOMMENT
LOWTools/autotest/arducopter.py8826 # Step 3: switch harmonics mid flight and check for trackingCOMMENT
LOWTools/autotest/arducopter.py8851 # Step 4: dynamic harmonicCOMMENT
LOWTools/autotest/arducopter.py8924 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/arducopter.py8962 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOWTools/autotest/arducopter.py8983 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/arducopter.py9023 # Step 4: loop sample rate test with larger windowCOMMENT
LOWTools/autotest/arducopter.py9079 # Step 1: inject actual motor noise and use the FFT to track itCOMMENT
LOWTools/autotest/arducopter.py9120 # Step 2: now rerun the test and check that the peak is squashedCOMMENT
LOWTools/autotest/arducopter.py9134 # Step 3: add a second harmonic and check the first is still trackedCOMMENT
LOWlibraries/AP_ESC_Telem/AP_ESC_Telem.cpp819// NOTE: This function should only be used to check timeouts other thanCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp266 // Step 1: Calculate the vector from the tether anchor to the vehicleCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp270 // Step 2: Check if tether is taut (length exceeds maximum allowed length) or stuckCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp308 // Step 3: Calculate the weight of the tether being liftedCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp312 // Step 4: Calculate the tension forceCOMMENT
LOWlibraries/SITL/SIM_Tether.cpp315 // Step 5: Apply the total force to the vehicleCOMMENT
AI Structural Patterns32 hits · 24 pts
SeverityFileLineSnippetContext
LOWTools/autotest/helicopter.py57CODE
LOWTools/autotest/vehicle_test_suite.py1947CODE
LOWTools/autotest/vehicle_test_suite.py5325CODE
LOWTools/autotest/vehicle_test_suite.py6944CODE
LOWTools/autotest/vehicle_test_suite.py6980CODE
LOWTools/autotest/vehicle_test_suite.py7053CODE
LOWTools/autotest/vehicle_test_suite.py7104CODE
LOWTools/autotest/vehicle_test_suite.py14316CODE
LOWTools/autotest/test_build_options.py45CODE
LOWTools/autotest/arducopter.py14633CODE
LOWTools/autotest/arducopter.py14661CODE
LOWTools/autotest/arducopter.py14711CODE
LOWTools/autotest/arducopter.py14783CODE
LOWTools/autotest/arducopter.py14799CODE
LOWTools/autotest/arducopter.py18284CODE
LOWTools/autotest/arducopter.py18455CODE
LOWTools/autotest/arducopter.py18506CODE
LOWTools/autotest/test_param_upgrade.py220CODE
LOWTools/autotest/test_param_upgrade.py225CODE
LOWTools/autotest/pysim/util.py81CODE
LOWTools/autotest/pysim/util.py181CODE
LOWTools/autotest/pysim/util.py280CODE
LOWTools/autotest/pysim/util.py326CODE
LOWTools/autotest/pysim/util.py510CODE
LOWTools/autotest/param_metadata/rstemit.py55CODE
LOWTools/scripts/size_compare_branches.py64CODE
LOWTools/scripts/uploader.py254CODE
LOWTools/scripts/build_boards.py31CODE
LOWTools/scripts/build_script_base.py352CODE
LOWTools/scripts/build_script_base.py357CODE
LOW…rollers/ardupilot_vehicle_controller/webots_vehicle.py54CODE
LOWlibraries/AP_Declination/generate/generate.py94CODE
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH…es/AP_ExternalAHRS/AP_ExternalAHRS_SensAItion_Parser.h68 // Accuracy Metrics (Vectors as requested)COMMENT
HIGHlibraries/AP_AccelCal/AccelCalibrator.cpp292 // time as requested by user/GCSCOMMENT
HIGHlibraries/AP_Winch/AP_Winch_PWM.cpp69 // update distance estimate assuming winch will move exactly as requestedCOMMENT
Slop Phrases6 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMTools/autotest/arducopter.py12048 # you can use terrain - if you don't the vehicle just uses aCOMMENT
MEDIUMTools/environment_install/install-ROS-ubuntu.sh157# If you experience issues connecting to the keyserver, you can try substituting hkp://pgp.mit.edu:80 or hkp://keyserverCOMMENT
LOW…P_HAL/examples/RCInputToRCOutput/RCInputToRCOutput.cpp6 don't forget to push it to enable the PWM output.CODE
LOWlibraries/AP_HAL/examples/RCOutput/RCOutput.cpp4 don't forget to push it to enable the PWM output.CODE
LOWlibraries/AP_HAL/examples/RCOutput2/RCOutput.cpp4 don't forget to push it to enable the PWM output.CODE
LOWlibraries/AP_CheckFirmware/monocypher.h238// Don't forget to add authentication.COMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHTools/scripts/annotate_params.py273 Extracts the parameter name from a line and validates it. Args: line (str): The line to extract the parSTRING
HIGHTools/scripts/param_check.py373Generates and returns metadata for a specific vehicle. Runs an external script to generate the metadata for the speSTRING
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOWTools/autotest/vehicle_test_suite.py6473 def set_parameter_bit(self, name: str, bit_offset: int) -> None:CODE
LOWTools/autotest/pysim/fdpexpect.py13__all__ = ['fdspawn']CODE
LOWTools/scripts/annotate_params.py301def update_parameter_documentation(doc: Dict[str, Any], target: str = '.', sort_type: str = 'none') -> None:CODE
LOWTools/scripts/run_coverage.py193 def update_stats(self) -> None:CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…_Motors/examples/AP_Motors_test/run_heli_comparison.py12# ---------------COMMENT
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlibraries/AP_ADSB/AP_ADSB_uAvionix_MAVLink.cpp75 const uint8_t emStatus = 0; // TODO: implement this ENUM. no emergency = 0CODE