{"id":15099744,"url":"https://github.com/auscompgeek/robotpy-wpilib-controller","last_synced_at":"2025-10-08T05:31:06.041Z","repository":{"id":62589514,"uuid":"160311190","full_name":"auscompgeek/robotpy-wpilib-controller","owner":"auscompgeek","description":"Backport of 2020 WPILib PIDController for Python","archived":true,"fork":false,"pushed_at":"2019-11-11T06:05:49.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T08:32:04.378Z","etag":null,"topics":["frc","pid-controller","robotpy","wpilib"],"latest_commit_sha":null,"homepage":"https://robotpy-wpilib-controller.rtfd.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/auscompgeek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-04T06:40:16.000Z","updated_at":"2023-01-28T06:13:08.000Z","dependencies_parsed_at":"2022-11-03T17:55:44.742Z","dependency_job_id":null,"html_url":"https://github.com/auscompgeek/robotpy-wpilib-controller","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/auscompgeek/robotpy-wpilib-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auscompgeek%2Frobotpy-wpilib-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auscompgeek%2Frobotpy-wpilib-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auscompgeek%2Frobotpy-wpilib-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auscompgeek%2Frobotpy-wpilib-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auscompgeek","download_url":"https://codeload.github.com/auscompgeek/robotpy-wpilib-controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auscompgeek%2Frobotpy-wpilib-controller/sbom","scorecard":{"id":216646,"data":{"date":"2025-08-11","repo":{"name":"github.com/auscompgeek/robotpy-wpilib-controller","commit":"e48134b1c3a944c257956cead8f9a7ab313ea51b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T01:46:56.307Z","repository_id":62589514,"created_at":"2025-08-17T01:46:56.307Z","updated_at":"2025-08-17T01:46:56.307Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278892107,"owners_count":26063930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["frc","pid-controller","robotpy","wpilib"],"created_at":"2024-09-25T17:27:01.839Z","updated_at":"2025-10-08T05:31:05.759Z","avatar_url":"https://github.com/auscompgeek.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wpilib-controller\n\nA backport of the upcoming (in 2020) WPILib PIDController.\n\nThis is a backport of [wpilibsuite/allwpilib#1300][], which is planned to be\nmerged for the 2020 season, for [RobotPy][].\n\n@calcmogul has some [in-progress docs][] on this.\n\nNote that if you are moving from the old WPILib PIDController, your PID\nconstants will need to change, as it did not consider the discretization period:\n\n- divide your Ki gain by 0.05, and\n- multiply your Kd gain by 0.05,\n- where 0.05 is the original default period (use the period you used otherwise).\n\n[wpilibsuite/allwpilib#1300]: https://github.com/wpilibsuite/allwpilib/pull/1300\n[RobotPy]: https://robotpy.github.io\n[in-progress docs]: https://docs.google.com/document/d/1M6sCsqxvQtP2qSIYkvfMb-k3sdPfEg9gsKKneY6i-os/view\n\n## Installation\n\nFor a computer with an internet connection:\n\n```\npip install wpilib-controller\n```\n\nTo install onto an offline roboRIO:\n\n\u003c!--\nNOTE: robotpy-installer does not download wheels:\nhttps://github.com/robotpy/robotpy-installer/issues/24\n--\u003e\n```bash\npip download wpilib-controller -d pip_cache  # with an internet connection\nrobotpy-installer install-pip wpilib-controller  # connected to your robot\n```\n\n## Example\n\n```python\nfrom wpilib_controller import PIDController\n\ncontroller = PIDController(1, 0, 0)\n# setInputRange and setContinuous are now a single method\ncontroller.enableContinuousInput(0, 360)\n\ncontroller.setSetpoint(180)\n\n# elsewhere...\n\n# assume gyro is a gyro object created prior\noutput = controller.calculate(gyro.getAngle())\n# do something with the output, for example:\nmotor.set(output)\n```\n\n## Major differences\n\n- The PID gains are no longer time dependent.\n- This PIDController expects a measurement as a parameter to `calculate()`.\n- This PIDController runs synchronously in your robot code (as opposed to having it run in a thread). You must call `calculate()` and use its return value.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauscompgeek%2Frobotpy-wpilib-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauscompgeek%2Frobotpy-wpilib-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauscompgeek%2Frobotpy-wpilib-controller/lists"}