Implement support for RatOS#48
Open
depau wants to merge 6 commits into
Open
Conversation
Note that due to Rat-OS/RatOS-configurator#91 the tool version needs to be set to 0.1, otherwise RatOS will refuse to print the G-Code unless the user overrides it in their Klipper config (unlikely to do so since it's undocumented)
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
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.
(note: set to draft since I noticed some issues after submitting, sorry about that!)
RatOS is a distribution of Klipper with some heavy customizations, used for RatRig V-Core printers, also compatible with some Vorons and Prusas.
With RatRig V-Core 4 printers in particular it's really not possible to use stock Klipper since a lot of features are missing, such as the IDEX functionality and tuning helpers.
I use this tool regularly with my V-Core 4, but each time I use it I need to edit the G-Code manually to make sure RatOS is happy.
This is what needs to happen for RatOS to be happy:
A generator that reports compatibility with RatOS must report v0.1 due to an oversight: Parse RatOS dialect version when used Rat-OS/RatOS-configurator#910.1is not valid SemVer. Instead, I implemented simply spoofing a Prusa Slicer version.T0/T1to select the toolhead.T1should appear after the start g-code sinceSTART_PRINTdoes a lot of stuff; the pre-processor decides which heaters to turn on based on its understanding of the G-Code.T1must not be followed by a comment, or else some regex in the pre-processor will blow upTOTAL_LAYER_COUNTparameter or else it will complain.Additionally, this PR:
START_PRINTtakes care of that with over-complicated logic.Let me know if you need any changes, and thanks for this tool!