coelacant1 / OpenDACT

Open Source Delta Automatic Calibration Tool
https://forum.seemecnc.com/forum/viewtopic.php?f=36&t=8698&sid=fee0abe0878b65d8c2f023d4b06b0775
GNU Affero General Public License v3.0
53 stars 21 forks source link

Trunk version of OpenDACT crashes Repetier while trying to set Delta Radius to a high precision humber #15

Closed Bougakov closed 7 years ago

Bougakov commented 7 years ago

OpenDACT (latest trunk version) crashes as it issues commands like this:

17:58:12.448 : M206 T3 P921 X-0.783469

image

Probably since it has 6 decimal numbers and not 3 (as Repetier uses to store floats in EEPROM), log starts filling up with lines like this and app freezes:

`000356: 0 FlowMultiply:100 ok 0

000357: 0 FlowMultiply:100 ok 0 SelectExtruder:0 FlowMultiply:100

000358: SelectExtruder:0 FlowMultiply:100

000359: SelectExtruder:0 FlowMultiply:100

000360: Resend:1 ok

000361: Resend:1 ok

000362: Resend:1 ok

000363: Resend:1 ok

000364: Resend:1 ok

000365: Resend:1 ok

000366: Resend:1 ok

000367: Resend:1 ok

000368: Resend:1 ok

000369: Resend:1 000370: ok

000371: ok

000372: Resend:1 ok

000373: Resend:1 ok

000374: Resend:1 ok

000375: Resend:1 ok

000376: Resend:1 ok

000377: Resend:1 ok

000378: Resend:1 ok

000379: Resend:1 ok

000380: Resend:1 ok `

Bougakov commented 7 years ago

Apologies, turns out that this was addressed in https://github.com/RollieRowland/OpenDACT/blob/master/OpenDACT/Class%20Files/GCode.cs#L86