mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
NEW: add first layer and spaghetti options
Change-Id: I6e2237a59a2e1fdb3a2f0432be3c7b22db944811 Signed-off-by: Stone Li <stone.li@bambulab.com> (cherry picked from commit 382652d8da84198bd51caa9d33331b53c5ac6721)
This commit is contained in:
parent
ad7e4d6de9
commit
506605041e
7 changed files with 312 additions and 5 deletions
|
@ -21,6 +21,8 @@
|
|||
#define FILAMENT_DEF_TEMP 220
|
||||
#define FILAMENT_MIN_TEMP 120
|
||||
|
||||
#define HOLD_COUNT_MAX 3
|
||||
|
||||
inline int correct_filament_temperature(int filament_temp)
|
||||
{
|
||||
int temp = std::min(filament_temp, FILAMENT_MAX_TEMP);
|
||||
|
@ -159,7 +161,7 @@ public:
|
|||
AmsStep step_state;
|
||||
AmsRfidState rfid_state;
|
||||
|
||||
void set_hold_count() { hold_count = 3; }
|
||||
void set_hold_count() { hold_count = HOLD_COUNT_MAX; }
|
||||
void update_color_from_str(std::string color);
|
||||
wxColour get_color();
|
||||
|
||||
|
@ -453,6 +455,11 @@ public:
|
|||
bool camera_recording { false };
|
||||
bool camera_timelapse { false };
|
||||
bool camera_has_sdcard { false };
|
||||
bool xcam_first_layer_inspector { false };
|
||||
int xcam_first_layer_hold_count = 0;
|
||||
bool xcam_spaghetti_detector { false };
|
||||
bool xcam_spaghetti_print_halt{ false };
|
||||
int xcam_spaghetti_hold_count = 0;
|
||||
|
||||
/* HMS */
|
||||
std::vector<HMSItem> hms_list;
|
||||
|
@ -526,6 +533,9 @@ public:
|
|||
// camera control
|
||||
int command_ipcam_record(bool on_off);
|
||||
int command_ipcam_timelapse(bool on_off);
|
||||
int command_xcam_control(std::string module_name, bool on_off, bool print_halt);
|
||||
int command_xcam_control_first_layer_inspector(bool on_off, bool print_halt);
|
||||
int command_xcam_control_spaghetti_detector(bool on_off, bool print_halt);
|
||||
|
||||
/* common apis */
|
||||
inline bool is_local() { return !dev_ip.empty(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue