diff --git a/src/components/panels/MachineSettings/MotionSettings.vue b/src/components/panels/MachineSettings/MotionSettings.vue
index 14d5c71ff..440b37419 100644
--- a/src/components/panels/MachineSettings/MotionSettings.vue
+++ b/src/components/panels/MachineSettings/MotionSettings.vue
@@ -9,7 +9,7 @@
+ @submit="sendCmd" />
+ @submit="sendCmd" />
+ @submit="sendCmd" />
+ @submit="sendCmd" />
+
@@ -102,6 +117,10 @@ export default class MotionSettings extends Mixins(BaseMixin) {
return Math.trunc(this.$store.state.printer?.toolhead?.max_accel_to_decel ?? this.accel / 2)
}
+ get minimumCruiseRatio(): number {
+ return this.$store.state.printer?.toolhead?.minimum_cruise_ratio ?? null
+ }
+
get squareCornerVelocity(): number {
return Math.floor((this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8) * 10) / 10
}
@@ -118,11 +137,16 @@ export default class MotionSettings extends Mixins(BaseMixin) {
return Math.trunc(this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500)
}
+ get defaultMinimumCruiseRatio(): number {
+ const value = this.$store.state.printer?.configfile?.settings?.printer?.minimum_cruise_ratio ?? 0.5
+
+ return Math.round(value / 10) * 10
+ }
+
get defaultSquareCornerVelocity(): number {
- return (
- Math.floor((this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8) * 10) /
- 10
- )
+ const value = this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8
+
+ return Math.floor(value * 10) / 10
}
@Debounce(500)
diff --git a/src/locales/de.json b/src/locales/de.json
index b6e494ec9..cf956e1e8 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -582,6 +582,7 @@
"MotionSettings": {
"Acceleration": "Beschleunigung",
"MaxAccelToDecel": "Max. Beschl. zu Verz.",
+ "MinimumCruiseRatio": "Min. Kreuzfahr Quote",
"SquareCornerVelocity": "Eck-Geschwindigkeit",
"Velocity": "Geschwindigkeit"
}
diff --git a/src/locales/en.json b/src/locales/en.json
index e62fb45a2..9ad788d7d 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -582,6 +582,7 @@
"MotionSettings": {
"Acceleration": "Acceleration",
"MaxAccelToDecel": "Max Accel. to Decel.",
+ "MinimumCruiseRatio": "Min. Cruise Ratio",
"SquareCornerVelocity": "Square Corner Velocity",
"Velocity": "Velocity"
}