Commit 12c9d3cd authored by Joanne Hugé's avatar Joanne Hugé

Set transition time unit to ms

parent e2df7d44
...@@ -238,9 +238,9 @@ static void *packet_sending_thread(void *p) { ...@@ -238,9 +238,9 @@ static void *packet_sending_thread(void *p) {
next_increment = 0; next_increment = 0;
if(i_t < i_s) if(i_t < i_s)
end_t = (main_params.transition_time * USEC_PER_SEC * USEC_PER_SEC * (i_c - i_t)) / (100 * MOTOR_STEPS * i_t * i_c); end_t = (main_params.transition_time * USEC_PER_SEC * USEC_PER_SEC * (i_c - i_t)) / (1000 * MOTOR_STEPS * i_t * i_c);
else else
end_t = (main_params.transition_time * USEC_PER_SEC * USEC_PER_SEC * (i_t - i_c)) / (100 * MOTOR_STEPS * i_t * i_c); end_t = (main_params.transition_time * USEC_PER_SEC * USEC_PER_SEC * (i_t - i_c)) / (1000 * MOTOR_STEPS * i_t * i_c);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment