♻️ Planner flags refactor
This commit is contained in:
@@ -315,7 +315,7 @@ void plan_arc(
|
||||
// Compute exact location by applying transformation matrix from initial radius vector(=-offset).
|
||||
// To reduce stuttering, the sin and cos could be computed at different times.
|
||||
// For now, compute both at the same time.
|
||||
const float cos_Ti = cos(i * theta_per_segment), sin_Ti = sin(i * theta_per_segment);
|
||||
const float Ti = i * theta_per_segment, cos_Ti = cos(Ti), sin_Ti = sin(Ti);
|
||||
rvec.a = -offset[0] * cos_Ti + offset[1] * sin_Ti;
|
||||
rvec.b = -offset[0] * sin_Ti - offset[1] * cos_Ti;
|
||||
}
|
||||
|
@@ -50,7 +50,7 @@ void GcodeSuite::G6() {
|
||||
// No speed is set, can't schedule the move
|
||||
if (!planner.last_page_step_rate) return;
|
||||
|
||||
const page_idx_t page_idx = (page_idx_t) parser.value_ulong();
|
||||
const page_idx_t page_idx = (page_idx_t)parser.value_ulong();
|
||||
|
||||
uint16_t num_steps = DirectStepping::Config::TOTAL_STEPS;
|
||||
if (parser.seen('S')) num_steps = parser.value_ushort();
|
||||
|
@@ -90,7 +90,7 @@ void GcodeSuite::M106() {
|
||||
// Set speed, with constraint
|
||||
thermalManager.set_fan_speed(pfan, speed);
|
||||
|
||||
TERN_(LASER_SYNCHRONOUS_M106_M107, planner.buffer_sync_block(BLOCK_FLAG_SYNC_FANS));
|
||||
TERN_(LASER_SYNCHRONOUS_M106_M107, planner.buffer_sync_block(BLOCK_BIT_SYNC_FANS));
|
||||
|
||||
if (TERN0(DUAL_X_CARRIAGE, idex_is_duplicating())) // pfan == 0 when duplicating
|
||||
thermalManager.set_fan_speed(1 - pfan, speed);
|
||||
@@ -111,7 +111,7 @@ void GcodeSuite::M107() {
|
||||
if (TERN0(DUAL_X_CARRIAGE, idex_is_duplicating())) // pfan == 0 when duplicating
|
||||
thermalManager.set_fan_speed(1 - pfan, 0);
|
||||
|
||||
TERN_(LASER_SYNCHRONOUS_M106_M107, planner.buffer_sync_block(BLOCK_FLAG_SYNC_FANS));
|
||||
TERN_(LASER_SYNCHRONOUS_M106_M107, planner.buffer_sync_block(BLOCK_BIT_SYNC_FANS));
|
||||
}
|
||||
|
||||
#endif // HAS_FAN
|
||||
|
Reference in New Issue
Block a user