@@ -114,8 +114,8 @@ constexpr ObjectModelTableEntry ZProbe::objectModelTable[] =
114
114
#if SUPPORT_SCANNING_PROBES
115
115
// 1. probe.touchMode members
116
116
{ " active" , OBJECT_MODEL_FUNC (self->useTouchMode ), ObjectModelEntryFlags::none },
117
- { " sensitivity" , OBJECT_MODEL_FUNC (self->touchModeSensitivity , 2 ), ObjectModelEntryFlags::none },
118
117
{ " speed" , OBJECT_MODEL_FUNC (InverseConvertSpeedToMmPerMin (self->touchModeProbeSpeed ), 1 ), ObjectModelEntryFlags::none },
118
+ { " threshold" , OBJECT_MODEL_FUNC (self->touchModeThreshold , 2 ), ObjectModelEntryFlags::none },
119
119
{ " triggerHeight" , OBJECT_MODEL_FUNC (self->touchModeTriggerHeight , 3 ), ObjectModelEntryFlags::none },
120
120
#endif
121
121
};
@@ -574,7 +574,7 @@ GCodeResult ZProbe::SetTouchModeParameters(GCodeBuffer& gb, const StringRef& rep
574
574
bool seen = false ;
575
575
gb.TryGetBValue (' S' , useTouchMode, seen);
576
576
gb.TryGetFValue (' H' , touchModeTriggerHeight, seen);
577
- gb.TryGetLimitedFValue (' V' , touchModeSensitivity , seen, 0.0 , 1 .0 );
577
+ gb.TryGetLimitedFValue (' V' , touchModeThreshold , seen, 0.0 , 5 .0 );
578
578
{
579
579
float speed;
580
580
if (gb.TryGetPositiveFValue (' F' , speed, seen))
@@ -589,8 +589,8 @@ GCodeResult ZProbe::SetTouchModeParameters(GCodeBuffer& gb, const StringRef& rep
589
589
}
590
590
else
591
591
{
592
- reply.printf (" Z probe %u touch mode: %s" " active, speed %.1fmm/min, trigger height %.2fmm, sensitivity %.2f" ,
593
- number, (useTouchMode) ? " " : " not " , (double )InverseConvertSpeedToMmPerMin (touchModeProbeSpeed), (double )touchModeTriggerHeight, (double )touchModeSensitivity );
592
+ reply.printf (" Z probe %u touch mode: %s" " active, speed %.1fmm/min, trigger height %.2fmm, threshold %.2f" ,
593
+ number, (useTouchMode) ? " " : " not " , (double )InverseConvertSpeedToMmPerMin (touchModeProbeSpeed), (double )touchModeTriggerHeight, (double )touchModeThreshold );
594
594
}
595
595
return GCodeResult::ok;
596
596
}
0 commit comments