|
[Repetier] Z-Probe und AutoBedLevel Bug und Lösung 21. January 2015 12:21 |
Registrierungsdatum: 12 Jahre zuvor Beiträge: 376 |
currentPositionSteps[Z_AXIS] += stepsRemainingAtZHit; // now current position is correct
if(r == 0 && first) // Modify start z position on first probe hit to speed the ZProbe process
{
int32_t newLastCorrection = currentPositionSteps[Z_AXIS] + (int32_t)((float)EEPROM::zProbeBedDistance() * axisStepsPerMM[Z_AXIS]);
if(newLastCorrection < lastCorrection)
{
updateZ = lastCorrection - newLastCorrection;
lastCorrection = newLastCorrection;
}
}

|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 21. January 2015 14:47 |
Registrierungsdatum: 11 Jahre zuvor Beiträge: 1.610 |
if(r == 0 && first) // Modify start z position on first probe hit to speed the ZProbe process
{
int32_t newLastCorrection = currentPositionSteps[Z_AXIS] + (int32_t)((float)EEPROM::zProbeBedDistance() * axisStepsPerMM[Z_AXIS]);
if(newLastCorrection < lastCorrection)
{
sum = stepsRemainingAtZHit;
lastCorrection = newLastCorrection;
}
}
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 09:45 |
Registrierungsdatum: 12 Jahre zuvor Beiträge: 376 |
float distance = static_cast(sum) * invAxisStepsPerMM[Z_AXIS] / static_cast(repeat) + EEPROM::zProbeHeight();
float distance = static_cast((sum)/ static_cast(repeat) +updateZ) * invAxisStepsPerMM[Z_AXIS] + EEPROM::zProbeHeight();
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 09:57 |
Registrierungsdatum: 11 Jahre zuvor Beiträge: 1.610 |
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 10:05 |
Registrierungsdatum: 11 Jahre zuvor Beiträge: 1.610 |
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 10:11 |
Registrierungsdatum: 11 Jahre zuvor Beiträge: 1.610 |
Quote
felko
die sollte so lauten:
float distance = static_cast((sum)/ static_cast(repeat) +updateZ) * invAxisStepsPerMM[Z_AXIS] + EEPROM::zProbeHeight();
float distance = static_cast(sum+updateZ)/ static_cast(repeat) * invAxisStepsPerMM[Z_AXIS] + EEPROM::zProbeHeight();
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 10:38 |
Registrierungsdatum: 12 Jahre zuvor Beiträge: 376 |
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 10:51 |
Registrierungsdatum: 11 Jahre zuvor Beiträge: 1.610 |
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 11:14 |
Registrierungsdatum: 11 Jahre zuvor Beiträge: 1.610 |
if(r == 0 && first) // Modify start z position on first probe hit to speed the ZProbe process
{
int32_t newLastCorrection = currentPositionSteps[Z_AXIS] + (int32_t)((float)EEPROM::zProbeBedDistance() * axisStepsPerMM[Z_AXIS]);
if(newLastCorrection < lastCorrection)
{
sum = lastCorrection - newLastCorrection;
lastCorrection = newLastCorrection;
}
}
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 11:32 |
Registrierungsdatum: 12 Jahre zuvor Beiträge: 376 |
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 22. January 2015 15:30 |
Registrierungsdatum: 11 Jahre zuvor Beiträge: 1.610 |
|
Re: [Repetier] Z-Probe und AutoBedLevel Bug und Lösung 25. January 2015 06:07 |
Registrierungsdatum: 14 Jahre zuvor Beiträge: 2.705 |