small error in trapezoid-calculation

This commit is contained in:
Simen Svale Skogsrud 2011-02-03 13:20:31 +01:00
parent f4b9da1ecb
commit b44577f69f

View File

@ -133,7 +133,7 @@ void calculate_trapezoid_for_block(block_t *block, double entry_factor, double e
if (plateau_steps < 0) {
accelerate_steps = ceil(
intersection_distance(block->initial_rate, final_rate, acceleration_per_minute, block->step_event_count));
plateau_steps = block->step_event_count-(2*accelerate_steps);
plateau_steps = 0;
// printString("no plateau\n\r");
}