summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-04-14 08:18:28 +0200
committerkliment <kliment.yanev@gmail.com>2011-04-14 08:18:28 +0200
commit6ec0bada6c713f4080f0f4ae7bd67259b0f1651e (patch)
tree53fbc51530e3b540ec94b23275b996f019906d7f
parent853a295762be4110703b902cf5c0b9da6f3d88ec (diff)
Fix interval calculation (thanks to BenJackson)
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index 487ddbe..cdd0294 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -798,7 +798,7 @@ void linear_move(unsigned long x_steps_remaining, unsigned long y_steps_remainin
}
acceleration_enabled = true;
if(full_velocity_steps == 0) full_velocity_steps++;
- long full_interval = max(interval, max_interval - ((max_interval - full_interval) * full_velocity_steps / virtual_full_velocity_steps));
+ long full_interval = interval;//max(interval, max_interval - ((max_interval - full_interval) * full_velocity_steps / virtual_full_velocity_steps));
if(interval > max_interval) acceleration_enabled = false;
unsigned long steps_done = 0;
unsigned int steps_acceleration_check = 1;