Plymouth ELEC351 Group T
/
ELEC351_Group_T
FINAL PROJECT isn't it
Fork of ELEC351 by
Diff: MOVES.hpp
- Revision:
- 57:aba1296e51b1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MOVES.hpp Wed Aug 15 21:34:59 2018 +0000 @@ -0,0 +1,36 @@ +//This is where the algorithms movements will be defined +#ifndef MOVES_HPP//Header Guards Prevents Multiple includes +#define MOVES_HPP +#include "ALGORITHM.hpp" +#include "STEPPER_MOTOR.hpp" +static STEPPER_MOTOR STEPPER_MOTOR_1(D0,D1);//step then direction +static STEPPER_MOTOR STEPPER_MOTOR_2(D2,D3);//step then direction +static STEPPER_MOTOR STEPPER_MOTOR_3(D4,D5);//step then direction +static STEPPER_MOTOR STEPPER_MOTOR_4(D6,D7);//step then direction +static STEPPER_MOTOR STEPPER_MOTOR_5(D8,D9);//step then direction +static STEPPER_MOTOR STEPPER_MOTOR_6(D10,D11);//step then direction + + +static int Move_list[200]; //Creates a move list of 200 which is defaulted to 0 + +static int Move_list_pointer; + +void White_Cross(); + +//White Cross funcitons +void White_Cross_Position(); +void White_Cross_Orientate(); +void White_Centre_Swap(); + + +void White_Corners(); +// White Corner functions +void Middle_Layer(); +void Top_Cross(); +void Top_Layer(); +void Corner_Positioning(); +void Edge_Orientation(); + +void List_Execution(); + +#endif \ No newline at end of file