Skip to content

Add CORE support and endstop UI tweakss #59

Open
ellensp wants to merge 2 commits intop3p:masterfrom
ellensp:add-cores
Open

Add CORE support and endstop UI tweakss #59
ellensp wants to merge 2 commits intop3p:masterfrom
ellensp:add-cores

Conversation

@ellensp
Copy link
Contributor

@ellensp ellensp commented Feb 7, 2026

Was wanting to look into a Marlin issue on a COREXY machine, so added all the CORE's to the simulator
Updated endstop UI so you can manually override their state

Updated SIM to automatically use min or max endstops as needed

#elif ENABLED(COREXY)
auto kinematics = root->add_component<CoreXYKinematicSystem>("CoreXY Kinematic System", on_kinematic_update);
#if X_HOME_DIR < 0
root->add_component<EndStop>("Endstop(X Min)", X_MIN_PIN, !X_MIN_ENDSTOP_HIT_STATE, [kinematics](){ return kinematics->state.effector_position[0].position.x <= X_MIN_POS; });
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I wonder if this could be neatened up a little with…

std::vector<extruder_state> &position = kinematics->state.effector_position[0].position;

…and…

root->add_component<EndStop>("Endstop(X Min)", X_MIN_PIN, !X_MIN_ENDSTOP_HIT_STATE,
  [position]{ return position.x <= X_MIN_POS; }
);

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