remove puller regulation

This commit is contained in:
just-some-entity committed 2026-02-28 16:57:19 +01:00
1 parent b0b4e2732b
commit d6102774bc
2 files changed
+3 -22

No files matched your search

@@ -261,25 +261,6 @@ export function Winder2ControlPage() {
timeseries={pullerSpeed}
renderValue={(value) => roundToDecimals(value, 1)}
/>
<Label label="Regulation">
<SelectionGroup
value={state?.puller_state?.regulation}
options={{
Speed: {
children: "Speed",
icon: "lu:Gauge",
},
Diameter: {
children: "Diameter",
icon: "lu:Sun",
disabled: true,
},
}}
onChange={setPullerRegulationMode}
disabled={isDisabled}
loading={isLoading}
/>
</Label>
<Label label="Target Speed">
<EditValue
value={state?.puller_state?.target_speed}
@@ -34,8 +34,8 @@ export const liveValuesEventDataSchema = z.object({
/**
* Puller regulation type enum
*/
export const pullerRegulationSchema = z.enum(["Speed", "Diameter"]);
export type PullerRegulation = z.infer<typeof pullerRegulationSchema>;
// export const pullerRegulationSchema = z.enum(["Speed", "Diameter"]);
// export type PullerRegulation = z.infer<typeof pullerRegulationSchema>;
/**
* Gear ratio enum for winding speed
@@ -120,7 +120,7 @@ export const traverseStateSchema = z.object({
* Puller state schema
*/
export const pullerStateSchema = z.object({
regulation: pullerRegulationSchema,
// regulation: pullerRegulationSchema,
target_speed: z.number(),
target_diameter: z.number(),
forward: z.boolean(),