Eindelijk!!!!!
Fork of Movement by
Diff: Movement.cpp
- Revision:
- 4:c81764efe40d
- Parent:
- 3:61733f7f1fea
- Child:
- 5:d13de19a1eea
diff -r 61733f7f1fea -r c81764efe40d Movement.cpp --- 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