asdf
Dependents: kinematics_controlv4 kinematics_control_copyfds Robot_control
Revision 4:c81764efe40d, committed 2017-11-01
- Comitter:
- peterknoben
- Date:
- Wed Nov 01 22:46:38 2017 +0000
- Parent:
- 3:61733f7f1fea
- Commit message:
- Working
Changed in this revision
Movement.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Movement.cpp Wed Nov 01 22:23:17 2017 +0000 +++ b/Movement.cpp Wed Nov 01 22:46:38 2017 +0000 @@ -37,6 +37,7 @@ } +//Get the left position float Movement::getpositionLeft(int SignalNumber, int mode, float max_range){ static float positionLeft; //Define a position array int directionLeft = getdirectionLeft(mode); @@ -69,6 +70,7 @@ return positionLeft; } +// Get the right position float Movement::getpositionRight(int SignalNumber, int mode, float max_range){ static float positionRight; //Define a position array int directionRight = getdirectionRight(mode); @@ -100,40 +102,3 @@ } return positionRight; } - - -/* - -int * Movement::getdirection(int mode){ -//int *getdirection(int direction[2]){ - static int direction[2]; - if(mode==1){ - direction[0]=1; - direction[1]=1; - } - else if(mode==2){ - direction[0]=1; - direction[1]=-1; - } - else if(mode==3){ - direction[0]=0; - direction[1]=0; - } - else if(mode==4){ - direction[0]=-1; - direction[1]=-1; - } - else if(mode==5){ - direction[0]=-1; - direction[1]=1; - } - else if(mode==6){ - direction[0]=0; - direction[1]=0; - } - else{ - //Error, unavailable mode - } - return direction; -} -*/ \ No newline at end of file