{"id":19882796,"url":"https://github.com/jthftc/ftc-teamcode","last_synced_at":"2025-08-20T12:33:32.882Z","repository":{"id":201582883,"uuid":"314251999","full_name":"jthftc/ftc-teamcode","owner":"jthftc","description":":book: Our Repository for All Previous Years of the JTH JAVA Program.","archived":false,"fork":false,"pushed_at":"2021-09-04T23:34:20.000Z","size":112388,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"2020-2021","last_synced_at":"2025-01-11T18:26:15.536Z","etag":null,"topics":["ftc-sdk","ftc-teamcode","java","opmode"],"latest_commit_sha":null,"homepage":"https://github.com/jthftc/ftc-teamcode/wiki","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jthftc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-11-19T13:11:39.000Z","updated_at":"2021-09-04T23:34:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"798b2d4d-eb9c-4feb-ae81-dd9c7062a1f9","html_url":"https://github.com/jthftc/ftc-teamcode","commit_stats":null,"previous_names":["jthftc/ftc-teamcode"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthftc%2Fftc-teamcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthftc%2Fftc-teamcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthftc%2Fftc-teamcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthftc%2Fftc-teamcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jthftc","download_url":"https://codeload.github.com/jthftc/ftc-teamcode/tar.gz/refs/heads/2020-2021","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241311262,"owners_count":19942123,"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","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":["ftc-sdk","ftc-teamcode","java","opmode"],"created_at":"2024-11-12T17:18:31.764Z","updated_at":"2025-03-01T03:23:36.021Z","avatar_url":"https://github.com/jthftc.png","language":"Java","readme":"# FTC TeamCode Repository 🤖\n\n[![Website](https://img.shields.io/website?label=javathehutts.org\u0026style=for-the-badge\u0026url=http%3A%2F%2Fjavathehutts.org)](https://javathehutts.org)\n[![Twitter Follow](https://img.shields.io/twitter/follow/javathehutts?color=1DA1F2\u0026logo=twitter\u0026style=for-the-badge)](https://twitter.com/intent/follow?original_referer=https%3A%2F%2Fgithub.com%2Fjavathehutts\u0026screen_name=javathehutts)\n[![Instagram Follow](https://img.shields.io/badge/instagram-%23E4405F.svg?\u0026style=for-the-badge\u0026logo=instagram\u0026logoColor=white)](https://instagram.com/jthftc)\n\n## Getting Started With Java\n\nTo start off with, you are going to need to download the current [FTC SDK](https://github.com/FIRST-Tech-Challenge/FtcRobotController) from the Official First Technology Challenge Github page. This will include a .zip file that includes all of the base structures that your team is going to need in order to develop a functional Java program.\n\nNext, your going to need to either setup an [OnBotJava](https://github.com/FIRST-Tech-Challenge/FtcRobotController/wiki/OnBot-Java-Tutorial) or [Andriod Studio](https://github.com/FIRST-Tech-Challenge/FtcRobotController/wiki/Android-Studio-Tutorial) environment for editing and compiling your Java projects. The links in the previous sentence will bring you to the respective tutorials provided by First Robotics.  \n\n## Developing an OpMode:\n\n### Basic Template\n\nTo begin creating your first java program, open up your /teamcode folder within your [FTC SDK](https://github.com/FIRST-Tech-Challenge/FtcRobotController) and create a new file named ```main.java```. Next copy and paste the following template into this new java file. This template includes basic imports, class syntax, and the ```init()```/```loop()``` in which will help define our robot objectives during the TeleOp period.\n\n```java\npackage org.firstinspires.ftc.teamcode; //This may change depending on where this file is stored\n\nimport com.qualcomm.robotcore.eventloop.opmode.OpMode;\nimport com.qualcomm.robotcore.eventloop.opmode.TeleOp; \nimport com.qualcomm.robotcore.hardware.DcMotor; //Needed for Motor Control\nimport com.qualcomm.robotcore.hardware.DcMotorEx; //Needed for Motor Control\nimport com.qualcomm.robotcore.hardware.Servo; //Needed for Servo Control\nimport com.qualcomm.robotcore.util.ElapsedTime;\n\n@TeleOp(name=\"main\", group=\"Opmode\") //Name \u0026 group of OpMode within the Driver Station Phone\n@Disabled //Remove when finished and ready for testing\n\npublic class main extends OpMode {\n\n    @Override\n    public void init() {\n      //Initialization Code\n    }\n    \n    @Override\n    public void loop() {\n      //Loop Code\n    }\n\n}\n```\n### Initializing Motors\n\n\n### Controlling Motors\n\n\n### Initializing Servos\n\n\n### Controlling Servos\n\n\n### Exporting OpMode\n\n\n### Adjusting OpMode Based Upon Drivetrain\n\n\n\n--- \n\n### Connect with us:\n\n[\u003cimg align=\"left\" alt=\"javathehutts.org\" width=\"22px\" src=\"https://raw.githubusercontent.com/iconic/open-iconic/master/svg/globe.svg\" /\u003e][website]\n[\u003cimg align=\"left\" alt=\"javathehutts | Facebook\" width=\"22px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/facebook.svg\" /\u003e][facebook]\n[\u003cimg align=\"left\" alt=\"javathehutts | Twitter\" width=\"22px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/twitter.svg\" /\u003e][twitter]\n[\u003cimg align=\"left\" alt=\"javathehutts | Instagram\" width=\"22px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/instagram.svg\" /\u003e][instagram]\n[\u003cimg align=\"left\" alt=\"javathehutts | YouTube\" width=\"22px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/youtube.svg\" /\u003e][youtube]\n[\u003cimg align=\"left\" alt=\"javathehutts | Reddit\" width=\"22px\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/reddit.svg\" /\u003e][reddit]\n\n\u003cbr /\u003e\n\n\n\n---\n\n\n\n\n[website]: http://javathehutts.org\n[twitter]: https://twitter.com/javathehutts\n[youtube]: https://youtube.com/channel/UC7lOdu9FJqzLBgwIap4CDhw\n[instagram]: https://instagram.com/jthftc\n[facebook]: https://www.facebook.com/Javathehutts/\n[reddit]: https://www.reddit.com/user/JavaTheHutts/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthftc%2Fftc-teamcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjthftc%2Fftc-teamcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthftc%2Fftc-teamcode/lists"}