New time estimator and total distance calculation in ChiliPeppr.
I’ve been doing soooo much with Three.js lately it’s getting easier to coerce it to my will. vector1.distanceTo(vector2) is pretty much all you have to do and then divide by feedrate to get minutes. Only tricky part is G2/G3’s.
@Jarret_Luft what do you think about getting real-time variable feedrate into CP? With this “estimated time” release, the Gcode widget now knows what feedrate each line is at. It’s in the same array element as the XYZ start/end for each line that is used to generate the fly-out menu in the Gcode widget. If a user wants to increase or decrease the feedrate on-the-fly, we could now send a new command to SPJS saying “please up the feedrate by this multiplier” and it could do it on the next line of Gcode it’s about to send to the controller. The buffer in SPJS may have to track the feedrate though on its own so it knows what the current feedrate is at, then it would have to inject the Fxxx on it’s own standalone line. It would have to up each F command after that too, so it would be a lot of extra parsing in SPJS. Not sure best approach. Ideas?