![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Proj 324 Final
Fork of ELEC351_Group_T by
MOVES.hpp@57:aba1296e51b1, 2018-08-15 (annotated)
- Committer:
- thomasmorris
- Date:
- Wed Aug 15 21:34:59 2018 +0000
- Revision:
- 57:aba1296e51b1
Final Version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 57:aba1296e51b1 | 1 | //This is where the algorithms movements will be defined |
thomasmorris | 57:aba1296e51b1 | 2 | #ifndef MOVES_HPP//Header Guards Prevents Multiple includes |
thomasmorris | 57:aba1296e51b1 | 3 | #define MOVES_HPP |
thomasmorris | 57:aba1296e51b1 | 4 | #include "ALGORITHM.hpp" |
thomasmorris | 57:aba1296e51b1 | 5 | #include "STEPPER_MOTOR.hpp" |
thomasmorris | 57:aba1296e51b1 | 6 | static STEPPER_MOTOR STEPPER_MOTOR_1(D0,D1);//step then direction |
thomasmorris | 57:aba1296e51b1 | 7 | static STEPPER_MOTOR STEPPER_MOTOR_2(D2,D3);//step then direction |
thomasmorris | 57:aba1296e51b1 | 8 | static STEPPER_MOTOR STEPPER_MOTOR_3(D4,D5);//step then direction |
thomasmorris | 57:aba1296e51b1 | 9 | static STEPPER_MOTOR STEPPER_MOTOR_4(D6,D7);//step then direction |
thomasmorris | 57:aba1296e51b1 | 10 | static STEPPER_MOTOR STEPPER_MOTOR_5(D8,D9);//step then direction |
thomasmorris | 57:aba1296e51b1 | 11 | static STEPPER_MOTOR STEPPER_MOTOR_6(D10,D11);//step then direction |
thomasmorris | 57:aba1296e51b1 | 12 | |
thomasmorris | 57:aba1296e51b1 | 13 | |
thomasmorris | 57:aba1296e51b1 | 14 | static int Move_list[200]; //Creates a move list of 200 which is defaulted to 0 |
thomasmorris | 57:aba1296e51b1 | 15 | |
thomasmorris | 57:aba1296e51b1 | 16 | static int Move_list_pointer; |
thomasmorris | 57:aba1296e51b1 | 17 | |
thomasmorris | 57:aba1296e51b1 | 18 | void White_Cross(); |
thomasmorris | 57:aba1296e51b1 | 19 | |
thomasmorris | 57:aba1296e51b1 | 20 | //White Cross funcitons |
thomasmorris | 57:aba1296e51b1 | 21 | void White_Cross_Position(); |
thomasmorris | 57:aba1296e51b1 | 22 | void White_Cross_Orientate(); |
thomasmorris | 57:aba1296e51b1 | 23 | void White_Centre_Swap(); |
thomasmorris | 57:aba1296e51b1 | 24 | |
thomasmorris | 57:aba1296e51b1 | 25 | |
thomasmorris | 57:aba1296e51b1 | 26 | void White_Corners(); |
thomasmorris | 57:aba1296e51b1 | 27 | // White Corner functions |
thomasmorris | 57:aba1296e51b1 | 28 | void Middle_Layer(); |
thomasmorris | 57:aba1296e51b1 | 29 | void Top_Cross(); |
thomasmorris | 57:aba1296e51b1 | 30 | void Top_Layer(); |
thomasmorris | 57:aba1296e51b1 | 31 | void Corner_Positioning(); |
thomasmorris | 57:aba1296e51b1 | 32 | void Edge_Orientation(); |
thomasmorris | 57:aba1296e51b1 | 33 | |
thomasmorris | 57:aba1296e51b1 | 34 | void List_Execution(); |
thomasmorris | 57:aba1296e51b1 | 35 | |
thomasmorris | 57:aba1296e51b1 | 36 | #endif |