Release 2026-04-14 spool and filament workflow
This commit is contained in:
@@ -30,6 +30,7 @@ constexpr uint32_t kWifiConnectTimeoutMs = 20000;
|
||||
constexpr uint32_t kSensorTimeoutMs = 1500;
|
||||
constexpr uint8_t kAverageSamples = 16;
|
||||
constexpr uint8_t kRawFilterWindow = 8;
|
||||
constexpr uint8_t kBatchCodeMaxLength = 4;
|
||||
constexpr float kRawFilterAlpha = 0.20f;
|
||||
constexpr float kWeightStepHysteresisGrams = 0.75f;
|
||||
constexpr lv_coord_t kScreenMargin = 12;
|
||||
@@ -71,10 +72,12 @@ struct WifiData
|
||||
struct InventreeMatch
|
||||
{
|
||||
int id = 0;
|
||||
int part_id = 0;
|
||||
float quantity = 0.0f;
|
||||
String location;
|
||||
String part_name;
|
||||
String batch;
|
||||
String spool_weight;
|
||||
};
|
||||
|
||||
constexpr size_t kInventreeMaxMatches = 8;
|
||||
@@ -109,6 +112,8 @@ struct UiRefs
|
||||
lv_obj_t *weight_note_label = nullptr;
|
||||
lv_obj_t *weight_raw_value = nullptr;
|
||||
lv_obj_t *workflow_batch_ta = nullptr;
|
||||
lv_obj_t *workflow_spool_weight_value = nullptr;
|
||||
lv_obj_t *workflow_filament_weight_value = nullptr;
|
||||
lv_obj_t *workflow_stock_name_label = nullptr;
|
||||
lv_obj_t *workflow_stock_meta_label = nullptr;
|
||||
|
||||
@@ -173,6 +178,7 @@ void saveInventreeConfig();
|
||||
void loadInventreeConfig();
|
||||
|
||||
float getCurrentWeightGrams();
|
||||
bool getFilamentWeightGrams(int32_t &grams);
|
||||
void performTare();
|
||||
void performCalibration(float reference_grams);
|
||||
void clearCalibration();
|
||||
|
||||
Reference in New Issue
Block a user