svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
696 stars 176 forks source link

Positions dont update #231

Closed yagizzha closed 3 years ago

yagizzha commented 3 years ago

image

messages are an array of coordinates like "X205 Y488 ", when i start this function it gets stuck inside the while loop because X and Y positions dont update but it still goes to the given position . i've tried to make and use a public version of your ProcessGrblPositionUpdate function but it didnt help .

Is there a way to send this function a signal when the machine reaches its destination or a way to update the X and Y values real time ?

svenhb commented 3 years ago

Instead of if (xabs + yabs < 0.001) Which is wrong in my eyes, you could use if (Grbl.posChanged)

svenhb commented 3 years ago

Grbl.PosChanged will be cleared after usage - probably not save for you. In next release you could use if (Grbl.Status != GrblState.idle)

svenhb commented 3 years ago

No feedback is a good feedback 😉