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,762 GitHub stars. SynthScan v2.0 examined 1,146,388 lines of code across 4798 source files, recording 5563 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-08-28
Last Push
15.8K
Stars
C++
Language
1.1M
Lines of Code
4.8K
Files
5.6K
Pattern Hits
2026-08-29
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 41MEDIUM 124LOW 5398

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 5563 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 Block4284 hits · 4057 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: 0 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
4224 more matches not shown…
Hyper-Verbose Identifiers528 hits · 407 pts
SeverityFileLineSnippetContext
LOWTools/mavproxy_modules/sitl_calibration.py458 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.py25 def max_distance_from_startup_location_at_end_of_test(self):CODE
LOWTools/autotest/helicopter.py49 def subgroupvarptr_activation_params(self):CODE
LOWTools/autotest/helicopter.py62 def get_position_armable_modes_list():CODE
LOWTools/autotest/helicopter.py1370 def autotune_land_and_save_gains(self):CODE
LOWTools/autotest/vehicle_test_suite.py4840 def assert_message_field_values(self, m, fieldvalues, verbose=True, epsilon=None):CODE
LOWTools/autotest/vehicle_test_suite.py4845 def assert_cached_message_field_values(self, message, fieldvalues, verbose=True, very_verbose=False, epsilon=None):CODE
LOWTools/autotest/vehicle_test_suite.py4852 def assert_received_message_field_values(self,CODE
LOWTools/autotest/vehicle_test_suite.py5349 def install_script_content_context(self, scriptname, content):CODE
LOWTools/autotest/vehicle_test_suite.py5356 def install_example_script_context(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py5362 def install_test_script_context(self, scriptnames):CODE
LOWTools/autotest/vehicle_test_suite.py5371 def install_test_scripts_context(self, *args, **kwargs):CODE
LOWTools/autotest/vehicle_test_suite.py5375 def install_test_modules_context(self):CODE
LOWTools/autotest/vehicle_test_suite.py5381 def install_script_module_context(self, source, modulename, install_name=None):CODE
LOWTools/autotest/vehicle_test_suite.py5389 def install_mavlink_module_context(self):CODE
LOWTools/autotest/vehicle_test_suite.py5395 def install_applet_script_context(self, scriptname, **kwargs):CODE
LOWTools/autotest/vehicle_test_suite.py5401 def install_driver_script_context(self, scriptname, install_name=None):CODE
LOWTools/autotest/vehicle_test_suite.py5724 def sitl_home_string_from_mission(self, filename):CODE
LOWTools/autotest/vehicle_test_suite.py5729 def sitl_home_string_from_mission_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py5734 def get_home_tuple_from_mission(self, filename):CODE
LOWTools/autotest/vehicle_test_suite.py5743 def get_home_location_from_mission(self, filename):CODE
LOWTools/autotest/vehicle_test_suite.py5747 def get_home_tuple_from_mission_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py5757 def load_mission_from_filepath(self,CODE
LOWTools/autotest/vehicle_test_suite.py5954 def check_fence_upload_download(self, items):CODE
LOWTools/autotest/vehicle_test_suite.py5962 def check_mission_upload_download(self, items, strict=True):CODE
LOWTools/autotest/vehicle_test_suite.py5971 def check_rally_upload_download(self, items):CODE
LOWTools/autotest/vehicle_test_suite.py5980 def check_dflog_message_rates(self, log_filepath, message_rates):CODE
LOWTools/autotest/vehicle_test_suite.py6261 def send_mavlink_disarm_command(self):CODE
LOWTools/autotest/vehicle_test_suite.py6267 def send_mavlink_run_prearms_command(self):CODE
LOWTools/autotest/vehicle_test_suite.py6270 def analog_rangefinder_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py6279 def set_analog_rangefinder_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py7332 # def context_start_custom_binary(self, extra_defines={}):COMMENT
LOWTools/autotest/vehicle_test_suite.py7909 def do_set_mode_via_command_long(self, mode, timeout=30):CODE
LOWTools/autotest/vehicle_test_suite.py7912 def do_set_mode_via_command_int(self, mode, timeout=30):CODE
LOWTools/autotest/vehicle_test_suite.py7915 def mavproxy_do_set_mode_via_command_long(self, mavproxy, mode, timeout=30):CODE
LOWTools/autotest/vehicle_test_suite.py7950 def assert_vehicle_location_is_at_startup_location(self, dist_max=1):CODE
LOWTools/autotest/vehicle_test_suite.py7960 def max_distance_from_startup_location_at_end_of_test(self):CODE
LOWTools/autotest/vehicle_test_suite.py7968 def assert_simstate_location_is_at_startup_location(self, dist_max=1):CODE
LOWTools/autotest/vehicle_test_suite.py9060 def _rc_overrides_send_single(self, chan, pwm):CODE
LOWTools/autotest/vehicle_test_suite.py9070 def _rc_overrides_release_single(self, chan):CODE
LOWTools/autotest/vehicle_test_suite.py9080 def _check_rc_overrides_cleared_by_pilot_input(self,CODE
LOWTools/autotest/vehicle_test_suite.py9685 def script_example_source_path(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py9691 def script_applet_source_path(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py9694 def script_driver_source_path(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py9697 def script_modules_source_path(self, scriptname):CODE
LOWTools/autotest/vehicle_test_suite.py9788 def mavlink_connection_supports_reconnect_delay(self):CODE
LOWTools/autotest/vehicle_test_suite.py9796 def announce_ourselves_to_ardupilot(self):CODE
LOWTools/autotest/vehicle_test_suite.py9805 def announce_ourselves_on_every_connection(self):CODE
LOWTools/autotest/vehicle_test_suite.py1797 def dump_dataid_counts_as_progress_messages(self):CODE
LOWTools/autotest/vehicle_test_suite.py1801 def dump_sensor_id_poll_counts_as_progress_messages(self):CODE
LOWTools/autotest/vehicle_test_suite.py1874 def send_mavlite_param_request_read(self, parameter_name):CODE
LOWTools/autotest/vehicle_test_suite.py1897 def send_mavlite_command_long(CODE
LOWTools/autotest/vehicle_test_suite.py2331 def autotest_connection_string_to_ardupilot(self):CODE
LOWTools/autotest/vehicle_test_suite.py2356 def repeatedly_apply_parameter_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py2368 def repeatedly_apply_parameter_filepath_mavproxy(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py2382 def apply_defaultfile_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py2394 def count_expected_fence_lines_in_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py2411 def load_fence_using_mavproxy(self, mavproxy, filename):CODE
LOWTools/autotest/vehicle_test_suite.py2457 def reboot_check_valgrind_log(self):CODE
468 more matches not shown…
Excessive Try-Catch Wrapping170 hits · 171 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.py441def connect(self):CODE
MEDIUMTools/autotest/vehicle_test_suite.py4122def verify_logs(test_log_num):CODE
LOWTools/autotest/vehicle_test_suite.py448 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py2623 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py3729 except Exception:CODE
LOWTools/autotest/vehicle_test_suite.py3769 except Exception:CODE
LOWTools/autotest/vehicle_test_suite.py4036 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py7201 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py7254 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py9380 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py9869 except Exception as msg:CODE
LOWTools/autotest/vehicle_test_suite.py10076 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10102 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10112 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10163 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10197 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11407 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11768 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11819 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11909 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11940 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py12534 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py12601 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py12756 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py14440 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py14599 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py16128 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py16489 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py16491 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py16522 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17175 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17222 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17260 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17316 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17366 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17437 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.py265 except Exception: # noqa: BLE001CODE
LOWTools/autotest/autotest.py769 except Exception as msg: # noqa: BLE001CODE
LOWTools/autotest/autotest.py1309 except Exception:CODE
LOWTools/autotest/quadplane.py1710 except Exception:CODE
LOWTools/autotest/test_build_options.py481 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.py320 except Exception as e:CODE
LOWTools/autotest/arduplane.py432 except Exception as e:CODE
LOWTools/autotest/arduplane.py533 except Exception as e:CODE
LOWTools/autotest/arduplane.py549 except Exception as e:CODE
LOWTools/autotest/arduplane.py4868 except Exception as e:CODE
LOWTools/autotest/arduplane.py5323 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/sim_vehicle.py319 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/sim_vehicle.py701 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/sim_vehicle.py800 except Exception as e: # noqa: BLE001CODE
MEDIUMTools/autotest/sim_vehicle.py337def run_gui(cmd_opts):CODE
LOWTools/autotest/arducopter.py2706 except Exception as e:CODE
LOWTools/autotest/arducopter.py2876 except Exception as e:CODE
110 more matches not shown…
Deep Nesting209 hits · 170 pts
SeverityFileLineSnippetContext
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py208CODE
LOWTools/autotest/bisect-helper.py217CODE
LOWTools/autotest/vehicle_test_suite.py1437CODE
LOWTools/autotest/vehicle_test_suite.py1940CODE
LOWTools/autotest/vehicle_test_suite.py2368CODE
LOWTools/autotest/vehicle_test_suite.py2846CODE
LOWTools/autotest/vehicle_test_suite.py3162CODE
LOWTools/autotest/vehicle_test_suite.py4049CODE
LOWTools/autotest/vehicle_test_suite.py4096CODE
LOWTools/autotest/vehicle_test_suite.py4789CODE
LOWTools/autotest/vehicle_test_suite.py4876CODE
LOWTools/autotest/vehicle_test_suite.py5426CODE
LOWTools/autotest/vehicle_test_suite.py5598CODE
LOWTools/autotest/vehicle_test_suite.py6085CODE
LOWTools/autotest/vehicle_test_suite.py6708CODE
LOWTools/autotest/vehicle_test_suite.py6916CODE
LOWTools/autotest/vehicle_test_suite.py7792CODE
LOWTools/autotest/vehicle_test_suite.py8435CODE
LOWTools/autotest/vehicle_test_suite.py9408CODE
LOWTools/autotest/vehicle_test_suite.py9454CODE
LOWTools/autotest/vehicle_test_suite.py11035CODE
LOWTools/autotest/vehicle_test_suite.py11680CODE
LOWTools/autotest/vehicle_test_suite.py11776CODE
LOWTools/autotest/vehicle_test_suite.py11919CODE
LOWTools/autotest/vehicle_test_suite.py12060CODE
LOWTools/autotest/vehicle_test_suite.py12909CODE
LOWTools/autotest/vehicle_test_suite.py13865CODE
LOWTools/autotest/vehicle_test_suite.py14144CODE
LOWTools/autotest/vehicle_test_suite.py14283CODE
LOWTools/autotest/vehicle_test_suite.py14529CODE
LOWTools/autotest/vehicle_test_suite.py14906CODE
LOWTools/autotest/vehicle_test_suite.py15126CODE
LOWTools/autotest/vehicle_test_suite.py16321CODE
LOWTools/autotest/vehicle_test_suite.py16608CODE
LOWTools/autotest/vehicle_test_suite.py18441CODE
LOWTools/autotest/vehicle_test_suite.py4122CODE
LOWTools/autotest/vehicle_test_suite.py11127CODE
LOWTools/autotest/vehicle_test_suite.py12920CODE
LOWTools/autotest/autotest.py419CODE
LOWTools/autotest/autotest.py724CODE
LOWTools/autotest/quadplane.py2385CODE
LOWTools/autotest/quadplane.py3725CODE
LOWTools/autotest/ardusub.py1187CODE
LOWTools/autotest/ardusub.py1411CODE
LOWTools/autotest/antennatracker.py208CODE
LOWTools/autotest/test_build_options.py142CODE
LOWTools/autotest/test_build_options.py203CODE
LOWTools/autotest/arduplane.py352CODE
LOWTools/autotest/arduplane.py5406CODE
LOWTools/autotest/sim_vehicle.py260CODE
LOWTools/autotest/sim_vehicle.py337CODE
LOWTools/autotest/sim_vehicle.py664CODE
LOWTools/autotest/sim_vehicle.py737CODE
LOWTools/autotest/sim_vehicle.py1084CODE
LOWTools/autotest/arducopter.py4085CODE
LOWTools/autotest/arducopter.py4321CODE
LOWTools/autotest/arducopter.py4442CODE
LOWTools/autotest/arducopter.py5477CODE
LOWTools/autotest/arducopter.py6173CODE
LOWTools/autotest/arducopter.py6796CODE
149 more matches not shown…
Cross-File Repetition24 hits · 120 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/ardusub.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
HIGHTools/autotest/blimp.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
HIGHTools/autotest/arduplane.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
HIGHTools/autotest/arducopter.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
HIGHTools/autotest/rover.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
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
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.sh51 # 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.py19CODE
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-Language Confusion12 hits · 70 pts
SeverityFileLineSnippetContext
HIGHTools/autotest/vehicle_test_suite.py17099 # the size counts both names and the separating null, not theCOMMENT
HIGHTools/autotest/vehicle_test_suite.py16819 entry means the autopilot emitted a stray null, which makes a clientSTRING
HIGHTools/autotest/arduplane.py3526 # Before the fix WIND.speed was wind.length() (3D); after the fix itCOMMENT
HIGHTools/autotest/arduplane.py4106 if gyro.length() > gyro_threshold:CODE
HIGHTools/autotest/arduplane.py4109 if accel.length() > accel_threshold:CODE
HIGHTools/autotest/arduplane.py4113 if gyro.length() > gyro_threshold*2:CODE
HIGHTools/autotest/arduplane.py4116 if accel.length() > accel_threshold*2:CODE
HIGHTools/autotest/arducopter.py10884 if vel.length() > 0.5:CODE
HIGHTools/ardupilotwaf/chibios.py700 rule="touch Makefile && BUILDDIR=${BUILDDIR_REL} BUILDROOT=${BUILDROOT} CHIBIOS=${CH_ROOT_REL} AP_HAL=${AP_HAL_RSTRING
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 Vocabulary23 hits · 65 pts
SeverityFileLineSnippetContext
MEDIUMTools/autotest/vehicle_test_suite.py10214 # the harness performs, because what matters is the state the nextCOMMENT
MEDIUMTools/autotest/arduplane.py3746 # in the future when the test is more robust.COMMENT
MEDIUMTools/autotest/arduplane.py5166 # a final reset so the harness sees a disarmed vehicle at the end:COMMENT
LOWTools/autotest/arduplane.py3027 # mcReady tests don't work ATM, so just return early:COMMENT
MEDIUMTools/autotest/arducopter.py11919 # now depends on incidental harness timing:COMMENT
MEDIUMTools/autotest/arducopter.py12293 # now depends on incidental harness timing: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_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.cpp175 // attempt to use EKF-GSF estimate if available as it is more robust to GPS glitchesCOMMENT
MEDIUMlibraries/AP_NavEKF3/AP_NavEKF3_MagFusion.cpp363 // 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.cpp761 // 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.cpp562 // reset our scratch area so we don't leak data, and can leverage trimmingCOMMENT
MEDIUMlibraries/GCS_MAVLink/GCS_Common.cpp3194 // note that this is not quite right; we could be more nuancedCOMMENT
Redundant / Tautological Comments49 hits · 60 pts
SeverityFileLineSnippetContext
LOWTools/autotest/vehicle_test_suite.py11625 # Check if we got the expected message or an unexpected oneCOMMENT
LOWTools/autotest/arduplane.py7352 # Check if all servos wiggleCOMMENT
LOWTools/autotest/arduplane.py4306 "FENCE_ACTION": 0, # Set action to reportCODE
LOWTools/autotest/arduplane.py4347 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4388 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4425 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4477 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4540 "FENCE_ACTION": 8, # Set action to AUTOLAND if possibleCODE
LOWTools/autotest/arduplane.py4606 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4675 "FENCE_ACTION": 6, # Set action to GUIDEDCODE
LOWTools/autotest/arducopter.py12453 # Check if the vehicle is stuck.COMMENT
LOWTools/autotest/arducopter.py18753 # Check if OSD is compiled in by looking for OSD_TYPE parameterSTRING
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.py48 # 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
Dead Code28 hits · 49 pts
SeverityFileLineSnippetContext
MEDIUMTools/autotest/vehicle_test_suite.py6661CODE
MEDIUMTools/autotest/vehicle_test_suite.py6663CODE
MEDIUMTools/autotest/vehicle_test_suite.py6672CODE
MEDIUMTools/autotest/arduplane.py3033CODE
MEDIUMTools/autotest/arduplane.py3035CODE
MEDIUMTools/autotest/arduplane.py3038CODE
MEDIUMTools/autotest/arduplane.py3041CODE
MEDIUMTools/autotest/arduplane.py3043CODE
MEDIUMTools/autotest/arduplane.py3044CODE
MEDIUMTools/autotest/arduplane.py3048CODE
MEDIUMTools/autotest/arduplane.py3049CODE
MEDIUMTools/autotest/arduplane.py3050CODE
MEDIUMTools/autotest/arduplane.py3051CODE
MEDIUMTools/autotest/arduplane.py3053CODE
MEDIUMTools/autotest/arduplane.py3054CODE
MEDIUMTools/autotest/arduplane.py3057CODE
MEDIUMTools/autotest/arduplane.py3058CODE
MEDIUMTools/autotest/arduplane.py3060CODE
MEDIUMTools/autotest/arduplane.py3061CODE
MEDIUMTools/autotest/arduplane.py3064CODE
MEDIUMTools/autotest/arduplane.py3065CODE
MEDIUMTools/autotest/arduplane.py3068CODE
MEDIUMTools/autotest/arduplane.py3069CODE
MEDIUMTools/autotest/arducopter.py17010CODE
MEDIUMTools/autotest/arducopter.py17021CODE
MEDIUMTools/autotest/rover.py2716CODE
MEDIUMTools/autotest/rover.py2719CODE
MEDIUMTools/scripts/decode_ICSR.py137CODE
Verbosity Indicators24 hits · 39 pts
SeverityFileLineSnippetContext
LOWTools/autotest/quadplane.py856 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOWTools/autotest/quadplane.py866 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/quadplane.py843 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/quadplane.py900 # Step 4: take off as a copter land as a plane, make sure we trackCOMMENT
LOWTools/autotest/sim_vehicle.py698 # Step 1: Attempt the lookupCOMMENT
LOWTools/autotest/sim_vehicle.py709 # Step 2: Validate the response object (Handles status_code 403 if no exception was raised)COMMENT
LOWTools/autotest/sim_vehicle.py718 # Step 3: Success logicCOMMENT
LOWTools/autotest/arducopter.py9652 # Step 1: inject actual motor noise and use the FFT to track itCOMMENT
LOWTools/autotest/arducopter.py9667 # Step 2: add a second harmonic and check the first is still trackedCOMMENT
LOWTools/autotest/arducopter.py9686 # Step 3: switch harmonics mid flight and check for trackingCOMMENT
LOWTools/autotest/arducopter.py9711 # Step 4: dynamic harmonicCOMMENT
LOWTools/autotest/arducopter.py9784 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/arducopter.py9822 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOWTools/autotest/arducopter.py9843 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/arducopter.py9883 # Step 4: loop sample rate test with larger windowCOMMENT
LOWTools/autotest/arducopter.py9952 # Step 1: inject actual motor noise and use the FFT to track itCOMMENT
LOWTools/autotest/arducopter.py9993 # Step 2: now rerun the test and check that the peak is squashedCOMMENT
LOWTools/autotest/arducopter.py10007 # 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 · 38 pts
SeverityFileLineSnippetContext
LOWTools/autotest/quadplane.py856 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOWTools/autotest/quadplane.py866 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/quadplane.py843 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/quadplane.py900 # Step 4: take off as a copter land as a plane, make sure we trackCOMMENT
LOWTools/autotest/sim_vehicle.py698 # Step 1: Attempt the lookupCOMMENT
LOWTools/autotest/sim_vehicle.py709 # Step 2: Validate the response object (Handles status_code 403 if no exception was raised)COMMENT
LOWTools/autotest/sim_vehicle.py718 # Step 3: Success logicCOMMENT
LOWTools/autotest/arducopter.py9652 # Step 1: inject actual motor noise and use the FFT to track itCOMMENT
LOWTools/autotest/arducopter.py9667 # Step 2: add a second harmonic and check the first is still trackedCOMMENT
LOWTools/autotest/arducopter.py9686 # Step 3: switch harmonics mid flight and check for trackingCOMMENT
LOWTools/autotest/arducopter.py9711 # Step 4: dynamic harmonicCOMMENT
LOWTools/autotest/arducopter.py9784 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/arducopter.py9822 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOWTools/autotest/arducopter.py9843 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/arducopter.py9883 # Step 4: loop sample rate test with larger windowCOMMENT
LOWTools/autotest/arducopter.py9952 # Step 1: inject actual motor noise and use the FFT to track itCOMMENT
LOWTools/autotest/arducopter.py9993 # Step 2: now rerun the test and check that the peak is squashedCOMMENT
LOWTools/autotest/arducopter.py10007 # 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 Patterns35 hits · 26 pts
SeverityFileLineSnippetContext
LOWTools/autotest/helicopter.py66CODE
LOWTools/autotest/vehicle_test_suite.py2109CODE
LOWTools/autotest/vehicle_test_suite.py5526CODE
LOWTools/autotest/vehicle_test_suite.py7367CODE
LOWTools/autotest/vehicle_test_suite.py7403CODE
LOWTools/autotest/vehicle_test_suite.py7476CODE
LOWTools/autotest/vehicle_test_suite.py7527CODE
LOWTools/autotest/vehicle_test_suite.py13865CODE
LOWTools/autotest/vehicle_test_suite.py15338CODE
LOWTools/autotest/test_build_options.py45CODE
LOWTools/autotest/arducopter.py9126CODE
LOWTools/autotest/arducopter.py9158CODE
LOWTools/autotest/arducopter.py16268CODE
LOWTools/autotest/arducopter.py16303CODE
LOWTools/autotest/arducopter.py16358CODE
LOWTools/autotest/arducopter.py16433CODE
LOWTools/autotest/arducopter.py16449CODE
LOWTools/autotest/arducopter.py20104CODE
LOWTools/autotest/arducopter.py20275CODE
LOWTools/autotest/arducopter.py20326CODE
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.py260CODE
LOWTools/scripts/build_boards.py31CODE
LOWTools/scripts/build_script_base.py362CODE
LOWTools/scripts/build_script_base.py367CODE
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.py13363 # 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 Boilerplate5 hits · 4 pts
SeverityFileLineSnippetContext
LOWTools/autotest/vehicle_test_suite.py277 def set_alt_m(self, alt_m: float, frame: AltFrame) -> None:CODE
LOWTools/autotest/vehicle_test_suite.py6674 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_MAVLink.cpp75 const uint8_t emStatus = 0; // TODO: implement this ENUM. no emergency = 0CODE