Updated motion in units per revolution mode (G95) to handle spindle RPM changes.

Changed initial wait for two index pulses to check RPM > 0 before starting such motion.
This commit is contained in:
Terje Io
2025-09-26 09:57:05 +02:00
parent e3803a252a
commit 17a4648a1d
9 changed files with 67 additions and 23 deletions
+3
View File
@@ -147,6 +147,7 @@ typedef struct {
// i.e. arcs, canned cycles, and backlash compensation.
float previous_unit_vec[N_AXIS]; // Unit vector of previous path line segment
float previous_nominal_speed; // Nominal speed of previous path line segment
float actual_rpm; // Updated when in units per revolution blocks (G95) mode.
} planner_t;
// Initialize and reset the motion plan subsystem
@@ -194,4 +195,6 @@ void plan_feed_override (override_t feed_override, override_t rapid_override);
void plan_data_init (plan_line_data_t *plan_data);
void plan_sync_velocity (void *block);
#endif