![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
FINAL PROJECT isn't it
Fork of ELEC351 by
MOVES.cpp
- Committer:
- thomasmorris
- Date:
- 2018-08-15
- Revision:
- 57:aba1296e51b1
- Parent:
- Moves.cpp@ 56:bc5345bc6650
File content as of revision 57:aba1296e51b1:
//This is where the algorithms movements will be defined #include "MOVES.hpp" int side = 0; //Sides void List_Execution() { pc.printf("Move point value is : %d\n",Move_list_pointer); for(int i = 0; i<= Move_list_pointer; i += 1) { if(Move_list[i] == 0){pc.printf("Move List Finished\n");} else if (Move_list[i] == 1){STEPPER_MOTOR_1.Rotate_Steps(50 ,1);} else if (Move_list[i] == 2){STEPPER_MOTOR_1.Rotate_Steps(50 ,0);} else if (Move_list[i] == 3){STEPPER_MOTOR_2.Rotate_Steps(50 ,1);} else if (Move_list[i] == 4){STEPPER_MOTOR_2.Rotate_Steps(50 ,0);} else if (Move_list[i] == 5){STEPPER_MOTOR_3.Rotate_Steps(50 ,1);} else if (Move_list[i] == 6){STEPPER_MOTOR_3.Rotate_Steps(50 ,0);} else if (Move_list[i] == 7){STEPPER_MOTOR_4.Rotate_Steps(50 ,1);} else if (Move_list[i] == 8){STEPPER_MOTOR_4.Rotate_Steps(50 ,0);} else if (Move_list[i] == 9){STEPPER_MOTOR_5.Rotate_Steps(50 ,1);} else if (Move_list[i] == 10){STEPPER_MOTOR_5.Rotate_Steps(50 ,0);} else if (Move_list[i] == 11){STEPPER_MOTOR_6.Rotate_Steps(50 ,1);} else if (Move_list[i] == 12){STEPPER_MOTOR_6.Rotate_Steps(50 ,0);} else pc.printf("Finished\n"); } pc.printf("List Run sucessful\n"); } void White_Cross() { } void White_Cross_Position() { if(CubeMap[1][0][1] == White )//Top middle { //rotate 180 } if(CubeMap[1][1][0] == White )//Middle Left { //rotate 90 } if(CubeMap[1][1][2] == White )//Middle Right { //rotate 0 } if(CubeMap[1][2][1] == White )//Bottom Middle { //rotate 270 } } void White_Cross_Orientate() { } void White_Centre_Swap() { } void White_Corners() { } void Middle_Layer() { } void Top_Cross() { } void Top_Layer() { } void Corner_Positioning() { } void Edge_Orientation() { }