Eindelijk!!!!!
Fork of Movement by
Diff: Movement.cpp
- Revision:
- 2:43a6498000e8
- Parent:
- 1:03e2651b4a24
- Child:
- 3:61733f7f1fea
diff -r 03e2651b4a24 -r 43a6498000e8 Movement.cpp --- a/Movement.cpp Wed Nov 01 11:46:48 2017 +0000 +++ b/Movement.cpp Wed Nov 01 13:42:11 2017 +0000 @@ -95,46 +95,3 @@ return position; } - - - - -/* -float *Movement::getposition(int SignalNumber, int mode){ - static float position[2]; //Define a position array - int *direction_math; //Define a useable direction array in this function - direction_math = getdirection(mode); //Fill the useable direction array - switch(SignalNumber){ - case 1: //Move slowest - xmovement = direction_math[0] * 1; //mm - ymovement = direction_math[1] * 1; //mm - position[0] += xmovement; - position[1] += ymovement; - break; - case 2: //Move slow - xmovement = direction_math[0] * 2; //mm - ymovement = direction_math[1] * 2; //mm - position[0] += xmovement; - position[1] += ymovement; - break; - case 3: //Move fast - xmovement = direction_math[0] * 5; //mm - ymovement = direction_math[1] * 5; //mm - position[0] += xmovement; - position[1] += ymovement; - break; - case 4: //Move fastest - xmovement = direction_math[0] * 10; //mm - ymovement = direction_math[1] * 10; //mm - position[0] += xmovement; - position[1] += ymovement; - break; - default : //if something is wrong or no muscles are flexed, standstill - position[0] = position[0]; - position[1] = position[1]; - break; - } - return position; -} -*/ -