Skip to content

review current changes#1

Open
Mycroft221 wants to merge 48 commits intocode_reviewfrom
main
Open

review current changes#1
Mycroft221 wants to merge 48 commits intocode_reviewfrom
main

Conversation

@Mycroft221
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread Alipay Robot Code/lib/Melty/melty.h Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.h Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
return 0;
}

bool melty::isBeaconSensed(bool currentReading) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A short comment describing the purpose of this function would be helpful here, as this function's purpose in unclear on its own. Something like "check if IR reading in any of the last IRLedDataSize melty::update() cycles is equal to lastIRLedReturnValue, if so, return lastIRLedReturnValue, otherwise, negate lastIRLedReturnValue and return lastIRLedReturnValue"

Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated
Comment thread Alipay Robot Code/lib/Melty/melty.cpp Outdated

void melty::update() {
bool curSeenIRLed;
if (useTopIr)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend always using curly braces for readability https://google.github.io/styleguide/cppguide.html#Formatting_Looping_Branching

Mew463 added 21 commits April 1, 2024 18:48
 Still need to add in accelerometer and not have to fully rely on seeing the IR beacon every rotation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants