ENH: modify config for N1
Change-Id: I151eb7ecabb1e5a8a2af95294cc03ffe92f6b660 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
3f1bffd0b6
commit
6058b18e43
|
@ -1977,8 +1977,17 @@ int MachineObject::command_ams_switch_filament(bool switch_filament)
|
||||||
return this->publish_json(j.dump());
|
return this->publish_json(j.dump());
|
||||||
}
|
}
|
||||||
|
|
||||||
int MachineObject::command_axis_control(std::string axis, double unit, double value, int speed)
|
|
||||||
|
int MachineObject::command_axis_control(std::string axis, double unit, double input_val, int speed)
|
||||||
{
|
{
|
||||||
|
double value = input_val;
|
||||||
|
if (!is_core_xy()) {
|
||||||
|
if ( axis.compare("Y") == 0
|
||||||
|
|| axis.compare("Z") == 0) {
|
||||||
|
value = -1.0 * input_val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
char cmd[256];
|
char cmd[256];
|
||||||
if (axis.compare("X") == 0
|
if (axis.compare("X") == 0
|
||||||
|| axis.compare("Y") == 0
|
|| axis.compare("Y") == 0
|
||||||
|
|
|
@ -839,7 +839,7 @@ public:
|
||||||
int command_set_printing_option(bool auto_recovery);
|
int command_set_printing_option(bool auto_recovery);
|
||||||
|
|
||||||
// axis string is X, Y, Z, E
|
// axis string is X, Y, Z, E
|
||||||
int command_axis_control(std::string axis, double unit = 1.0f, double value = 1.0f, int speed = 3000);
|
int command_axis_control(std::string axis, double unit = 1.0f, double input_val = 1.0f, int speed = 3000);
|
||||||
|
|
||||||
// calibration printer
|
// calibration printer
|
||||||
bool is_support_command_calibration();
|
bool is_support_command_calibration();
|
||||||
|
|
|
@ -2226,6 +2226,12 @@ void StatusPanel::update_misc_ctrl(MachineObject *obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (obj->is_core_xy()) {
|
||||||
|
m_staticText_z_tip->SetLabel(_L("Bed"));
|
||||||
|
} else {
|
||||||
|
m_staticText_z_tip->SetLabel("Z");
|
||||||
|
}
|
||||||
|
|
||||||
// update extruder icon
|
// update extruder icon
|
||||||
update_extruder_status(obj);
|
update_extruder_status(obj);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue