Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
fixed acceleration
Browse files Browse the repository at this point in the history
  • Loading branch information
i-make-robots committed Mar 22, 2018
1 parent 01e78a9 commit 03144d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stewartPlatform2Firmware/segment.ino
Expand Up @@ -173,12 +173,12 @@ void recalculate_forward() {


int intersection_time(float acceleration,float distance,float start_speed,float end_speed) {
#if 0
//#if 0
return ( ( 2.0*acceleration*distance - start_speed*start_speed + end_speed*end_speed ) / (4.0*acceleration) );
#else
/*#else
float t2 = ( start_speed - end_speed + acceleration * distance ) / ( 2.0 * acceleration );
return distance - t2;
#endif
#endif*/
}


Expand Down

0 comments on commit 03144d9

Please sign in to comment.