{"id":21130636,"url":"https://github.com/choate-robotics/oval_car","last_synced_at":"2026-01-02T07:17:18.481Z","repository":{"id":117935124,"uuid":"185113993","full_name":"Choate-Robotics/Oval_Car","owner":"Choate-Robotics","description":"Another Autonomous Challenge","archived":false,"fork":false,"pushed_at":"2019-05-11T14:25:14.000Z","size":7625,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-21T06:11:32.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Processing","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Choate-Robotics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-06T03:00:50.000Z","updated_at":"2019-05-07T19:15:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"47b227d3-fa2e-4604-8f75-35978b0b0dd7","html_url":"https://github.com/Choate-Robotics/Oval_Car","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Choate-Robotics%2FOval_Car","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Choate-Robotics%2FOval_Car/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Choate-Robotics%2FOval_Car/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Choate-Robotics%2FOval_Car/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Choate-Robotics","download_url":"https://codeload.github.com/Choate-Robotics/Oval_Car/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573495,"owners_count":20312883,"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":[],"created_at":"2024-11-20T05:35:57.939Z","updated_at":"2026-01-02T07:17:18.421Z","avatar_url":"https://github.com/Choate-Robotics.png","language":"Processing","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oval Car\n\nThe goal of this challenge is to create a drive system that will allow the car to navigate a two lane system. We would like to see the car start in one lane. You can know that the car starts in the outside lane. The car must spend a few seconds in each lane and then change to the other lane.\n\n![GIF of Oval Car Solution](https://github.com/Choate-Robotics/Oval_Car/blob/master/OvalCarsolution.gif)\n\n\n### Hints about the DriveSystem\n\nDriveSystem is again an abstract class that needs to be subclassed to create a strategy for how the car is to move.\n\nYou will want the robot to act differently at different times. This time I suggest that you use the `millis()`to do this. You may want to record the starting time of your loop in a class variable and measure time from that start.\n\nYou should be able to avoid the `noSense` business from before by using `millis()`.\n\n\n## API for the Car object\n\nCar has the following methods that may be useful:\n\n`Car(int x, int y, float theta)`\n\nThis constructor method allows you to place a car on the canvas pointing in the direction of `angle`. The directions work with 0 as directly up and move in in a clockwise manner.\n\n`void setLeftSpeed(int s)`\n\nSet the speed of the left motor to an integer from 0 to 255.\n\n`void setRightSpeed(int s)`\n\nSet the speed of the left motor to an integer from 0 to 255.\n\n`void LEDSense()`\n\nHave the readings of the left and right sensors loaded into `sensorValueRight` and `sensorValueLeft`.\n\n`void show()`\n\nDraw the car on the canvas.\n\n`void move()`\n\nCompute the new position of the car based on the motor settings.\n\n![](https://imgs.xkcd.com/comics/success.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoate-robotics%2Foval_car","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoate-robotics%2Foval_car","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoate-robotics%2Foval_car/lists"}