Skip to content

Conversation

@shirleydu
Copy link
Contributor

  • Add new tags to map more closely to Cura's original tagging and what's available in accel/jerk settings.
  • Have specific tags per extruder so that bead mode settings can be set for them separately.
  • Keep the old tags so that Cloudprint can still preview the .makerbot files...

* Add new tags to map more closely to Cura's original tagging and what's
  available in accel/jerk settings.
* Have specific tags per extruder so that bead mode settings can be set for
  them separately.
* Keep the old tags so that Cloudprint can still preview the .makerbot files...
@github-actions
Copy link

github-actions bot commented Jan 13, 2025

Test Results

1 tests   1 ✅  0s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 04dff78.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@wawanbreton wawanbreton left a comment

Choose a reason for hiding this comment

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

Looks good !

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ clang-tidy found issue(s) with the introduced code (1/1)

Pause, // Command to allow for user defined pause.
};

#define MB_BEAD_MODE_TAG(TAG_NAME) \

Choose a reason for hiding this comment

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

⚠️ cppcoreguidelines-macro-usage ⚠️
function-like macro MB_BEAD_MODE_TAG used; consider a constexpr template function

TAG_NAME##_0, \
TAG_NAME##_1

enum class Tag

Choose a reason for hiding this comment

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

⚠️ performance-enum-size ⚠️
enum Tag uses a larger base type (int, size: 4 bytes) than necessary for its value set, consider using std::uint8_t (1 byte) as the base type to reduce its size

{ CommandType::WaitForTemperature, "wait_for_temperature" },
{ CommandType::Pause, "pause" } })

#define MB_JTP_TAG(TAG_NAME, TAG_STR) \

Choose a reason for hiding this comment

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

⚠️ cppcoreguidelines-macro-usage ⚠️
function-like macro MB_JTP_TAG used; consider a constexpr template function

#define MB_JTP_TAG(TAG_NAME, TAG_STR) \
{ Tag::TAG_NAME, #TAG_STR }

#define MB_BEAD_MODE_TAG_DEF(TAG_NAME, TAG_STR) \

Choose a reason for hiding this comment

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

⚠️ cppcoreguidelines-macro-usage ⚠️
function-like macro MB_BEAD_MODE_TAG_DEF used; consider a constexpr template function

MB_JTP_TAG(TAG_NAME##_1, TAG_STR##_1)

NLOHMANN_JSON_SERIALIZE_ENUM(
Tag,

Choose a reason for hiding this comment

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

⚠️ misc-include-cleaner ⚠️
no header providing "dulcificum::botcmd::Tag" is directly included

}
}
else if (state.feature_type == "SKIN")
{

Choose a reason for hiding this comment

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

⚠️ bugprone-branch-clone ⚠️
repeated branch body in conditional chain

@wawanbreton
Copy link
Contributor

I have made a quick test of these changes, I do see the new tags in the jsontoolpath file, however there are some paths tagged as PRIME_TOWER_0 although I don't have any printer prime tower, @alanbjorklund does it make any sense to you ?

@alanbjorklund
Copy link

@wawanbreton if you export gcode instead of a .makerbot file, does the gcode contain any tags for PRIME_TOWER_0? From what I understand, the tags in the jsontoolpath should match the tags assigned to the gcode.

@wawanbreton
Copy link
Contributor

Oh, sorry, big mistake on my side. The prime-tower tag is indeed in the gcode, and there is actually a small prime tower because of the raft using a different material. So just forget what I said, all good 🙂

@HellAholic HellAholic merged commit 37defcd into main Feb 7, 2025
9 checks passed
@HellAholic HellAholic deleted the CURA-12371 branch February 7, 2025 12:25
wawanbreton added a commit that referenced this pull request Mar 21, 2025
This reverts commit 37defcd, reversing
changes made to 0225cb2.
wawanbreton added a commit that referenced this pull request Mar 28, 2025
wawanbreton added a commit that referenced this pull request Mar 28, 2025
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.

5 participants