-
Notifications
You must be signed in to change notification settings - Fork 2
Detect tiles using light sensors #17
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
Closed
Closed
Changes from 70 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
9bb74c8
preliminary push
MahdMalik b7fd9b5
code to begin testing light sensor. As of current, detects change by …
MahdMalik a2fc11f
now detecting difference in colors
MahdMalik 95e82c5
added weighted sum
MahdMalik ac2e09c
almost finished adding a delay to checking different color, seems to…
MahdMalik 4625b20
fixed bug, now cooldown works correctly. Will try to rewrite to remov…
MahdMalik fdedf6b
refactored code to be more elegeant and clear
MahdMalik 0a6b6a3
added print statement
MahdMalik 0549656
Update README.md
MahdMalik 229036a
Update README.md
MahdMalik a988f78
Update README.md
MahdMalik aea0e69
Update README.md
MahdMalik b9c43c6
Update README.md
MahdMalik 9d4e0d4
Update README.md
MahdMalik 0b13c70
Update README.md
MahdMalik d66a83a
now tracking the sensor values
MahdMalik e0684ef
Merge branch 'light-sensors' of https://github.com/Comet-Robotics/che…
MahdMalik 81cfa45
now tracking the sensor values
MahdMalik d8437eb
FORCE PUSH WE BALL
MahdMalik 4c86505
now light sensor stops on change, some more testing needs to be done …
MahdMalik 0285d5b
Update README.md
MahdMalik 3801978
some reverse working at least, that's nice
MahdMalik 326e2d4
Merge branch 'light-sensors' of https://github.com/Comet-Robotics/che…
MahdMalik 55be84f
reversing to make up for speed working, not very well but it works. I…
MahdMalik 4f4d9b0
Update README.md
MahdMalik 58096cd
alright, I think that movement should be pretty good and doesn't need…
MahdMalik 14378dd
made main.cpp not do as jmuch and moved more code into control.cpp, a…
MahdMalik ee21354
way to get angle ready
MahdMalik c98a803
light sensor started tweaking out so wasn't able to make too much pro…
MahdMalik 536e723
i am heisenberg
MahdMalik 2965502
STRONG AURA: WE BALL GRAHH! Now it seems the turning is working somew…
MahdMalik b71877d
Merge branch 'main' of https://github.com/Comet-Robotics/chessbots-em…
MahdMalik 93e7e28
wallahi we're so back, light sensors are working again. Did change th…
MahdMalik 86cf7b3
getting a bit closer to having reliable movement, it seems an issue i…
MahdMalik 94be21b
its working better now, doesn't seem to be reversing. One thing is it…
MahdMalik 35c61d7
IT'S FINALLY TURNING IN A STABLE MANNER, STARTED FROM THE BOTTOM NOW …
MahdMalik caf8412
Update README.md
MahdMalik 62e0ce1
light sensor bros we're so back
MahdMalik e67c48d
Merge branch 'light-sensors' of https://github.com/Comet-Robotics/che…
MahdMalik d5214d0
going to implement a hardware timer to be more accureate than just it…
MahdMalik a58adfb
angle made more accurate, need to try to test at terminal velocity th…
MahdMalik 9452b1a
got low-diffed by pid/encoder turning, might just instead try to turn…
MahdMalik 56db840
have an idea on how to reverse, should ask colin if I should use the …
MahdMalik 00befab
wallahi im finished
MahdMalik 4d7531b
nvm we're back
MahdMalik 4f9a87c
WE COMING IN ON SATURDAY WITH THIS ONE 🗣️ ️🔥️🔥️🔥
MahdMalik 20f0591
so it seems PID doesn't react too kindly to when you constantly incre…
MahdMalik aa2f86e
alt solution in the meantime: continuously move bot at intervals inst…
MahdMalik 21b47ca
gonna have to dive into the pid function and see what's going wrong
MahdMalik 2edaaeb
it seems i'm at least getting closer to getting the pid to be success…
MahdMalik 0060c29
WALLAHI WE'RE SO BACK, PID IS FIXED NOW I JUST NEED TO TEST THE TURN …
MahdMalik 8ad9249
WALLAHI WE'RE SO FINISHED, LIGHT SENSOR ACTING UP NOW, I'M SO CLOSE A…
MahdMalik 10c60f7
alright so at at least now I know that the light sensors failing is c…
MahdMalik d5d1273
ok so the bot is moving fine on hard surfaces like wood but not the t…
MahdMalik 6d817c3
so the light sensors crash out depending what surface the bot is on w…
MahdMalik 5170ba9
alright so now I got the pid fixed when it would overshoot heavily by…
MahdMalik cbb0f6d
I DON'T KNOW WHY I HAVE TO DIVIDE THE ANGLE BY 2 BUT NOW IT ALIGNS A…
MahdMalik b4ee1f8
ok even after a bit of debugging I still have no idea why I divide by…
MahdMalik 453477a
'I'm going to go back to being that guy. Since they all seem to have…
MahdMalik b540ed6
alright as I suspected, centering will actually be fairly easy. One t…
MahdMalik 45f8346
centering around one axis roughly completed
MahdMalik 6aebfa6
CENTERING WORKS GRAHHHHH
MahdMalik 8f130d5
centering seems a bit acceptable, sometimes the motor jitters and is …
MahdMalik 83f5bd5
stalling issue seems to be fixed (at least as far as I can see), now …
MahdMalik 01a29a3
rewriting some code to be more clear, I need to fix this issue there …
MahdMalik cdba882
made centering a bit more accurate (I think)
MahdMalik 07c58a1
cleaned up trapezoidal profile
MahdMalik 87bf49e
done commenting and cleaning up code in control.cpp
MahdMalik 26c79c7
sped up movement while keeping it safe
MahdMalik 7f40f48
made a failsafe for the occasional jittering where it doesn't quite r…
MahdMalik e08198b
fixed a bug where if I put a timer on the jittering it'd skip the nex…
MahdMalik 7dd9fdd
TRAPEZOIDAL PROFILE BEAT THE ALLEGATIONS ON GOD!! so it turns out tha…
MahdMalik 043960c
task should be done now, tested it like 5 times and didn't seem to en…
MahdMalik ef03e6a
Add ability to center forever for Kickoff. Centering in general needs…
xXDMOGXx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,4 @@ | |
| .vscode/settings.json | ||
| .vscode/ipch | ||
| env.h | ||
| /.history | ||
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 file contains hidden or 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 file contains hidden or 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 file contains hidden or 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 file contains hidden or 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 file contains hidden or 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line made me audibly chuckle. nice