Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ELEC351_Group_T by
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
Generated on Tue Jul 12 2022 22:52:51 by
