Proj 324 Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Revision:
57:aba1296e51b1
Parent:
56:bc5345bc6650
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MOVES.cpp	Wed Aug 15 21:34:59 2018 +0000
@@ -0,0 +1,84 @@
+//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()
+{
+    
+}
\ No newline at end of file