-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-competition rover.py
refactor 2: Electric Boogaloo
#9
Draft
onkoe
wants to merge
43
commits into
Sooner-Rover-Team:HappySad
Choose a base branch
from
onkoe:refactor/rover_py
base: HappySad
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This allows folks to just do `config.stuff()` instead of fallibly-indexing into the ConfigParser dictionary each time. In other words, there's a single point of failure, which is something I'd like to get rid of.
open to renaming |
this one uses a library to do the grunt work (math), allowing for cleaner, less scary code it also creates two files. let me know if that looks bad or something
these replace Location.start/stop(_gps) :3
this should always be called! otherwise, the GPS might be left in a weird state...
yeah here's a dump of all the stuff in case i lose it or something
This may not work with 3.6 but is guaranteed to work in 3.11 and 3.7, the other two versions that we have access to Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
True bearing represents something different. See the previous "chore(temp)" commit for additional information. Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
This changes the speeds to use the 0-255 syntax, where 126 is the neutral/stopped speed. Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
This fixes the dumb Python runtime errors from attempting to cast the `longitude` field into a function pointer... Why??? Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
Co-Authored-By: Tyler Roman <92000197+ROMANT21@users.noreply.github.com>
thank u remi |
i want this to be the commit that confused future generations |
i won't say what it does. but it fixes ci :3 |
anyways, calling it a night here. here's what remains to be implemented:
|
note: all modules need to be synced to run for the same amount of time as expected. i.e. HappySad/libs/drive.py had a desync:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This refactor is a total rewrite of many parts of the Autonomous codebase. In the files that have seemed fallible for too long, we're writing an easier API.
More importantly, though, we plan to maintain the rover's current state as we take actions. This means that a
Rover
class progresses its various fields/members - each with its own state.When we go from GPS navigation to ARUCO/YOLO navigation, it won't just be a broken for loop. Instead, its entire state changes, and another method runs entirely.
These changes all work together through the use of threads (and possibly
multiprocessing
). We'll see :)