-
Notifications
You must be signed in to change notification settings - Fork 1
Erick Assertion Handler #95
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
base: dev
Are you sure you want to change the base?
Conversation
updated main.cpp
| objects = { | ||
|
|
||
| /* Begin PBXBuildFile section */ | ||
| E1B489D01CC87D9300643A24 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1B489CF1CC87D9300643A24 /* main.cpp */; }; |
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.
wow xcode projects are ugly
# Conflicts: # workspace.xcworkspace/contents.xcworkspacedata
Codes are located at this [spreadsheet](https://docs.google.com/spreadsheets/d/1zIhQ-8UmOYflNnDYCz lLkUQ36gXbFe5Jb5eG3tSFJYs/edit?usp=sharing)
…ick_assertion-handler # Conflicts: # workspace.xcworkspace/contents.xcworkspacedata
| Micromouse::Memory::write( Micromouse::ERROR_MEMORY, intNextIndex); | ||
|
|
||
| } | ||
|
|
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.
can you add a function here that dumps all the errors in memory to the serial port using log()
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.
Hmm, you mean read all the codes and output them to the serial port?
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.
yes
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.
I can't tell if i did it right :P
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.
Not quite, look at logger.h for proper use
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.
how about now???
plus i can't tell why i can't call to this inline method anywhere in the project :P
|
Looks good, just need a way to view the errors |
|
|
||
| } | ||
|
|
||
| inline static void printErrorCodes() { |
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.
Why does it need to be inline?
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.
hmmm, beats the hell out of me, i thought i had to, does it need to be static? i would say no huh
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.
no, it can just be a regular global function
|
Needs to be tested on the mouse |
closes #83
Substitute
assert(e)withassertion( condition, integer code ). Definitions of code values is saved in AssertionHandler-Dictionary.csvChanges
( + ) AssertionHandler.h