Thomas Morris / Mbed OS PROJ324_Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MOVES.hpp Source File

MOVES.hpp

00001 //This is where the algorithms movements will be defined
00002 #ifndef MOVES_HPP//Header Guards Prevents Multiple includes
00003 #define MOVES_HPP
00004 #include "ALGORITHM.hpp"
00005 #include "STEPPER_MOTOR.hpp"
00006 static STEPPER_MOTOR STEPPER_MOTOR_1(D0,D1);//step then direction
00007 static STEPPER_MOTOR STEPPER_MOTOR_2(D2,D3);//step then direction
00008 static STEPPER_MOTOR STEPPER_MOTOR_3(D4,D5);//step then direction
00009 static STEPPER_MOTOR STEPPER_MOTOR_4(D6,D7);//step then direction
00010 static STEPPER_MOTOR STEPPER_MOTOR_5(D8,D9);//step then direction
00011 static STEPPER_MOTOR STEPPER_MOTOR_6(D10,D11);//step then direction
00012 
00013 
00014 static int Move_list[200]; //Creates a move list of 200 which is defaulted to 0
00015 
00016 static int Move_list_pointer;
00017 
00018 void White_Cross();
00019 
00020 //White Cross funcitons
00021 void White_Cross_Position();
00022 void White_Cross_Orientate();
00023 void White_Centre_Swap();
00024 
00025 
00026 void White_Corners();
00027 // White Corner functions
00028 void Middle_Layer();
00029 void Top_Cross();
00030 void Top_Layer();
00031 void Corner_Positioning();
00032 void Edge_Orientation();
00033 
00034 void List_Execution();
00035 
00036 #endif