mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-12 14:51:09 -05:00
A Grbl-style lookahead planner re-times the cut simulation with trapezoidal acceleration, junction-deviation corner speeds and a centripetal cap on arcs. Machines gain cut/rapid acceleration and corner deviation in Machine Configuration, with placeholder values until the controller's are entered. The simulator and Calculate Cut Time pick the machine (or full speed), and the simulator shows the live head speed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
861 B
C#
29 lines
861 B
C#
using System;
|
|
|
|
namespace OpenNest;
|
|
|
|
public class CutParameters
|
|
{
|
|
public double Feedrate { get; set; }
|
|
public double RapidTravelRate { get; set; }
|
|
public TimeSpan PierceTime { get; set; }
|
|
public double LeadInLength { get; set; }
|
|
public string PostProcessor { get; set; }
|
|
public Units Units { get; set; }
|
|
|
|
/// <summary>
|
|
/// Acceleration limits; null estimates every move at full speed. Applied by
|
|
/// <see cref="CNC.CutSimulation"/> and the plate/nest overloads of <see cref="Timing.CalculateTime(Plate, CutParameters)"/>.
|
|
/// </summary>
|
|
public MotionProfile Motion { get; set; }
|
|
|
|
public static CutParameters Default =>
|
|
new()
|
|
{
|
|
Feedrate = 100,
|
|
RapidTravelRate = 300,
|
|
PierceTime = TimeSpan.FromSeconds(0.5),
|
|
Units = OpenNest.Units.Inches,
|
|
};
|
|
}
|