mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
ENH: refine ams mapping for U0 firmware
display index of filament Change-Id: I8a97a71cd334a1536ae7bfd4a5673e9757b2e662 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
2a84e68852
commit
2eb9aea56a
6 changed files with 93 additions and 11 deletions
|
@ -3615,7 +3615,7 @@ std::string DynamicPrintConfig::get_filament_type(int id)
|
|||
return "Support G";
|
||||
}
|
||||
else {
|
||||
return filament_type->get_at(id) + "-Support";
|
||||
return filament_type->get_at(id);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -3624,7 +3624,7 @@ std::string DynamicPrintConfig::get_filament_type(int id)
|
|||
else if (filament_type->get_at(id) == "PA")
|
||||
return "Support G";
|
||||
else
|
||||
return filament_type->get_at(id) + "-Support";
|
||||
return filament_type->get_at(id);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -27,6 +27,12 @@ enum MachineBedType {
|
|||
BED_TYPE_COUNT,
|
||||
};
|
||||
|
||||
enum MappingResult {
|
||||
MAPPING_RESULT_DEFAULT = 0,
|
||||
MAPPING_RESULT_TYPE_MISMATCH = 1,
|
||||
MAPPING_RESULT_EXCEED = 2
|
||||
};
|
||||
|
||||
struct FilamentInfo
|
||||
{
|
||||
int id; // filament id = extruder id, start with 0.
|
||||
|
@ -36,6 +42,7 @@ struct FilamentInfo
|
|||
float used_g;
|
||||
int tray_id; // start with 0
|
||||
float distance;
|
||||
int mapping_result = 0;
|
||||
};
|
||||
|
||||
class BBLSliceInfo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue