hudbrog / gCodeViewer

a visual web based gcode analyzer
Other
421 stars 150 forks source link

ModelInfo produces many NaN's #45

Open rkblackfire opened 8 years ago

rkblackfire commented 8 years ago

I think it is related to my Slicer (modified skeinforge by myriwell), because noone else reported such problems:

In every .gcode file ''all'' individual layer information are calculated ok (plausible values). But in Model Info most values are shown as NaN (not summed up correctly).

I ''fixed it'' (only better error handling - not really investigated the reason) with: .in Worker.js ..line 162: ...- totalFilament+=cmds[j].extrusion; ...+ if(cmds[j].extrusion > 0) totalFilament+=cmds[j].extrusion; ..line 181: ...- printTime += printTimeAdd; ...+ if (printTimeAdd > 0) printTime += printTimeAdd;

Example .gcode can be found at: [http://pastebin.com/AbGFDyTM]

Thumbs Up! to the Project after all.

Sincerely, Richard.