Skip to content

Commit

Permalink
feat: adds probe accuracy support (#1365)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
  • Loading branch information
pedrolamas authored Feb 18, 2024
1 parent 61a58f7 commit a72342a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/components/widgets/toolhead/ToolheadCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ export default class ToolheadCard extends Mixins(StateMixin, ToolheadMixin) {
}
get printerSupportsProbeCalibrate (): boolean {
return 'probe' in this.printerSettings || 'bltouch' in this.printerSettings
return (
'probe' in this.printerSettings ||
'bltouch' in this.printerSettings
)
}
get printerSupportsZEndstopCalibrate (): boolean {
Expand Down Expand Up @@ -318,26 +321,31 @@ export default class ToolheadCard extends Mixins(StateMixin, ToolheadMixin) {
})
if (this.printerSupportsProbeCalibrate) {
tools.push({
name: 'PROBE_ACCURACY',
disabled: !this.allHomed,
wait: this.$waits.onProbeAccuracy
})
tools.push({
name: 'PROBE_CALIBRATE',
disabled: !this.allHomed,
wait: this.$waits.onProbeCalibrate
})
}
if (this.printerSupportsBedScrewsCalculate) {
if (this.printerSupportsQuadGantryLevel) {
tools.push({
name: 'SCREWS_TILT_CALCULATE',
name: 'QUAD_GANTRY_LEVEL',
disabled: !this.allHomed || this.isManualProbeActive,
wait: this.$waits.onBedScrewsCalculate
wait: this.$waits.onQGL
})
}
if (this.printerSupportsQuadGantryLevel) {
if (this.printerSupportsBedScrewsCalculate) {
tools.push({
name: 'QUAD_GANTRY_LEVEL',
name: 'SCREWS_TILT_CALCULATE',
disabled: !this.allHomed || this.isManualProbeActive,
wait: this.$waits.onQGL
wait: this.$waits.onBedScrewsCalculate
})
}
Expand Down
1 change: 1 addition & 0 deletions src/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ export const Waits = Object.freeze({
onTimelapseSaveFrame: 'onTimelapseSaveFrame',
onManualProbe: 'onManualProbe',
onProbeCalibrate: 'onProbeCalibrate',
onProbeAccuracy: 'onProbeAccuracy',
onZEndstopCalibrate: 'onZEndstopCalibrate',
onQueryEndstops: 'onQueryEndstops',
onQueryProbe: 'onQueryProbe',
Expand Down

0 comments on commit a72342a

Please sign in to comment.