mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 03:42:05 +00:00
FIX: display the minimum flush data
1. Use the minimum flush between nozzle volume and flush in datalist 2. Add a new param to decide the datalist to use github:7445 Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: Id87c98ca5069e7b328974d641d7a81dfbf9c50a0 (cherry picked from commit 2be29b784727330732170b5c2ff0ba9d5e79d82f)
This commit is contained in:
@@ -8,14 +8,6 @@
|
||||
|
||||
namespace FlushPredict
|
||||
{
|
||||
enum FlushMachineType
|
||||
{
|
||||
Standard,
|
||||
DualStandard,
|
||||
DualHighFlow
|
||||
};
|
||||
|
||||
|
||||
struct RGBColor
|
||||
{
|
||||
unsigned char r{ 0 };
|
||||
@@ -48,10 +40,10 @@ class FlushVolPredictor;
|
||||
class GenericFlushPredictor
|
||||
{
|
||||
using RGB = FlushPredict::RGBColor;
|
||||
using MachineType = FlushPredict::FlushMachineType;
|
||||
public:
|
||||
explicit GenericFlushPredictor(const MachineType& type);
|
||||
explicit GenericFlushPredictor(const int dataset_value);
|
||||
bool predict(const RGB& from, const RGB& to, float& flush);
|
||||
int get_min_flush_volume();
|
||||
private:
|
||||
FlushVolPredictor* predictor{ nullptr };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user