{"id":19096246,"url":"https://github.com/cobular/lkmtechcandriver-rust","last_synced_at":"2025-02-22T08:45:30.979Z","repository":{"id":219569846,"uuid":"749317977","full_name":"Cobular/LKMTechCanDriver-Rust","owner":"Cobular","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-19T18:46:30.000Z","size":2550,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T00:17:19.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/Cobular.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-01-28T08:08:14.000Z","updated_at":"2024-01-28T08:08:19.000Z","dependencies_parsed_at":"2024-11-09T03:36:20.593Z","dependency_job_id":"2ac32a7e-31f9-4e0c-a396-6d42e0521d59","html_url":"https://github.com/Cobular/LKMTechCanDriver-Rust","commit_stats":null,"previous_names":["cobular/lkmtechcandriver-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2FLKMTechCanDriver-Rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2FLKMTechCanDriver-Rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2FLKMTechCanDriver-Rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2FLKMTechCanDriver-Rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cobular","download_url":"https://codeload.github.com/Cobular/LKMTechCanDriver-Rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240149612,"owners_count":19755731,"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-09T03:36:14.982Z","updated_at":"2025-02-22T08:45:30.952Z","avatar_url":"https://github.com/Cobular.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LKM Tech Motor Driver\n\nThis project is a basic program that takes speed goals from stdin and sends them to the motor. It's written in Rust and uses the `lkmtech_motor_driver` library to control the motor.\n\n## Prerequisites\n\n- Rust programming language\n- `lkmtech_motor_driver` library\n\n## Usage\n\nTo use this program, you need to run the `basic_speed_setting.rs` file. This file reads speed goals from the standard input (stdin) and sends them to the motor.\n\n```bash\ncargo run --example basic_speed_setting\n```\n\nThen, you can input your speed goals line by line. The program will send these speed goals to the motor using closed-loop control.\n\n## Code Overview\n\nThe `basic_speed_setting.rs` file contains the main function of the program. It creates a new `MgMotor` instance, which represents the motor. The motor is connected to the \"vcan0\" virtual CAN interface, and it uses the CAN ID 0x1 and a timeout of 10 milliseconds.\n\nThe program then reads lines from stdin in a loop. Each line is parsed as an integer, which represents the speed goal. The speed goal is then sent to the motor using the `send_speed_closed_loop_control` method of the `MgMotor` instance.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobular%2Flkmtechcandriver-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcobular%2Flkmtechcandriver-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobular%2Flkmtechcandriver-rust/lists"}