-
Notifications
You must be signed in to change notification settings - Fork 20
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
split of unit types #144
Merged
Merged
split of unit types #144
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
00f63af
split units to IND modules
MG-longshot b07ff01
Update AFC_hub.py
MG-longshot 1f7efc2
Update AFC_hub.py
MG-longshot 0031b9b
Update AFC_spool.py
MG-longshot be650ce
used unit type look up for prep
MG-longshot 660b62b
Update AFC_prep.py
MG-longshot 202fc70
Update AFC_prep.py
MG-longshot 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 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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class afcBoxTurtle: | ||
def __init__(self, config): | ||
self.printer = config.get_printer() | ||
self.reactor = self.printer.get_reactor() | ||
self.gcode = self.printer.lookup_object('gcode') | ||
|
||
firstLeg = '<span class=warning--text>|</span><span class=error--text>_</span>' | ||
secondLeg = firstLeg + '<span class=warning--text>|</span>' | ||
self.logo ='<span class=success--text>R _____ ____\n' | ||
self.logo+='E / \ | </span><span class=info--text>o</span><span class=success--text> | \n' | ||
self.logo+='A | |/ ___/ \n' | ||
self.logo+='D |_________/ \n' | ||
self.logo+='Y {first}{second} {first}{second}\n'.format(first=firstLeg, second=secondLeg) | ||
|
||
self.logo_error ='<span class=error--text>E _ _ _ _\n' | ||
self.logo_error+='R |_|_|_|_|_|\n' | ||
self.logo_error+='R | \____\n' | ||
self.logo_error+='O | \ \n' | ||
self.logo_error+='R | |\ <span class=secondary--text>X</span> |\n' | ||
self.logo_error+='! \_________/ |___|</error>\n' | ||
|
||
def load_config(config): | ||
return afcBoxTurtle(config) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class afcNightOwl: | ||
def __init__(self, config): | ||
self.printer = config.get_printer() | ||
self.reactor = self.printer.get_reactor() | ||
self.gcode = self.printer.lookup_object('gcode') | ||
|
||
self.logo = 'Night Owl Ready' | ||
self.logo ='R , ,\n' | ||
self.logo+='E )\___/(\n' | ||
self.logo+='A {(@)v(@)}\n' | ||
self.logo+='D {|~~~|}\n' | ||
self.logo+='Y {/^^^\}\n' | ||
self.logo+='! `m-m`\n' | ||
|
||
self.logo_error = 'Night Owl Not Ready\n' | ||
|
||
def load_config(config): | ||
return afcNightOwl(config) |
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 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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -115,35 +115,16 @@ | |||||
self.AFC.AFC_error(error_string, False) | ||||||
return | ||||||
self.gcode.respond_info(CUR_HUB.type + ' ' + UNIT +' Prepping lanes') | ||||||
|
||||||
if CUR_HUB.type == 'Box_Turtle': | ||||||
firstLeg = '<span class=warning--text>|</span><span class=error--text>_</span>' | ||||||
secondLeg = firstLeg + '<span class=warning--text>|</span>' | ||||||
logo ='<span class=success--text>R _____ ____\n' | ||||||
logo+='E / \ | </span><span class=info--text>o</span><span class=success--text> | \n' | ||||||
logo+='A | |/ ___/ \n' | ||||||
logo+='D |_________/ \n' | ||||||
logo+='Y {first}{second} {first}{second}\n'.format(first=firstLeg, second=secondLeg) | ||||||
logo+=' ' + UNIT + '\n' | ||||||
|
||||||
logo_error ='<span class=error--text>E _ _ _ _\n' | ||||||
logo_error+='R |_|_|_|_|_|\n' | ||||||
logo_error+='R | \____\n' | ||||||
logo_error+='O | \ \n' | ||||||
logo_error+='R | |\ <span class=secondary--text>X</span> |\n' | ||||||
logo_error+='! \_________/ |___|</error>\n' | ||||||
logo_error+=' ' + UNIT + '\n' | ||||||
|
||||||
if CUR_HUB.type == 'Night_Owl': | ||||||
logo = 'Night Owl Ready' | ||||||
logo_error = 'Night Owl Not Ready' | ||||||
logo ='R , ,\n' | ||||||
logo+='E )\___/(\n' | ||||||
logo+='A {(@)v(@)}\n' | ||||||
logo+='D {|~~~|}\n' | ||||||
logo+='Y {/^^^\}\n' | ||||||
logo+='! `m-m`\n' | ||||||
logo+=' ' + UNIT + '\n' | ||||||
|
||||||
try: unit_type = self.printer.lookup_object('AFC_{}'.format(CUR_HUB.type.replace('_', ''))) | ||||||
except: | ||||||
self.ERROR.AFC_error("{} not supported".format(CUR_HUB.type, False)) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops typed this wrong in my example
Suggested change
|
||||||
continue | ||||||
|
||||||
logo=unit_type.logo | ||||||
logo+=' ' + UNIT + '\n' | ||||||
logo_error=unit_type.logo_error | ||||||
logo_error+=' ' + UNIT + '\n' | ||||||
|
||||||
for LANE in self.AFC.lanes[UNIT].keys(): | ||||||
check_success = True | ||||||
|
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
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.
thought so but the buffer status function had been moved to AFC_buffer status on the dev
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.
Main has these same changes as well
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.
ignore this comment for now