feat: 🛞 tracking wheel robot localisation#18
Conversation
This reverts commit d0aa966.
|
Notes
|
outsidermm
left a comment
There was a problem hiding this comment.
need think controller component structure with superclass controller
|
|
||
| [dependencies] | ||
| vexide = "0.7.0" | ||
| vexide = { version = "0.7.0" } |
There was a problem hiding this comment.
can version control be less explicit. idk if you can do it in rust where u specify only the big version numbers
There was a problem hiding this comment.
not sure i fully understand your comment, cargo.toml is read by rust compiler to include proper libraries
| @@ -0,0 +1,63 @@ | |||
| use vexide::devices::math::Point2; | |||
There was a problem hiding this comment.
change file name for relevance
| @@ -1,7 +1,9 @@ | |||
|
|
|||
There was a problem hiding this comment.
generally how you structure a library for robots is weird. Shouldnt there be a controller module and a componenet module and the logics are seperate
|
|
||
| use vexide::{devices::adi::motor, prelude::*}; | ||
| use alloc::{sync::Arc, vec::Vec}; | ||
| use alloc::vec; |
src/main.rs
Outdated
| let display = Arc::new(Mutex::new(peripherals.display)); | ||
|
|
||
| vexide::task::spawn(async move { | ||
| vexide::time::sleep(Duration::from_millis(10)).await; |
There was a problem hiding this comment.
what is the purpose of adding a async sleep.then ending the task
| } | ||
|
|
||
| /// Returns the offset of the tracking wheel. | ||
| pub fn get_offset(&self) -> f64 { |
There was a problem hiding this comment.
where are ur other getters and setters
| @@ -79,127 +75,4 @@ impl Inner{ | |||
| let _ = motor.brake(mode); | |||
Summary:
Implementing a classic tracking wheel robot localisation algorithm first developed by 5225A Pilons. (Specific algorithm here: https://www.vexforum.com/t/team-5225-introduction-to-position-tracking-document/49640)
And also a relevant telemetry system for debugging purposes.
Motivation:
Robot localisation is a key part of a good VEX auton, and critical for any feedback-loop based self correcting algorithm involved in a good auton.
Test Plan: