From 96051d0b354c233d25da489df2ff5e70a36e0dbf Mon Sep 17 00:00:00 2001 From: MackaJunest <95353708+MackaJunest@users.noreply.github.com> Date: Sun, 12 Feb 2023 15:21:06 +0100 Subject: [PATCH] Delete Arduino files/Main directory --- Arduino files/Main/Main.ino | 57 ------------------- Arduino files/Main/Motion.h | 74 ------------------------ Arduino files/Main/Return_origin.h | 58 ------------------- Arduino files/Main/Setup.h | 91 ------------------------------ 4 files changed, 280 deletions(-) delete mode 100644 Arduino files/Main/Main.ino delete mode 100644 Arduino files/Main/Motion.h delete mode 100644 Arduino files/Main/Return_origin.h delete mode 100644 Arduino files/Main/Setup.h diff --git a/Arduino files/Main/Main.ino b/Arduino files/Main/Main.ino deleted file mode 100644 index cacfb4a..0000000 --- a/Arduino files/Main/Main.ino +++ /dev/null @@ -1,57 +0,0 @@ -/* - Copyright © 2022 MackaJunest - Permission is hereby granted, free of charge, to any person obtaining a copy of - this software and associated documentation files (the “Software”), to deal in - the Software without restriction, including without limitation the rights to - use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies - of the Software, and to permit persons to whom the Software is furnished to do - so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. -************************************************************************************** - - Front - ____ - Leg1 | |Leg2 - left | | right - | | - Leg4 ---- Leg3 - Back - H=ham - S=shank - - L1H ____ - L1S LEG1 - - L2H ____ - L2S LEG2 - - L3H ____ - L3S LEG3 - - L4H ____ - L4S LEG4 -*/ -#include "Setup.h" -#include "Motion.h" -#include "Return_origin.h" -void loop() -{ - if (Serial.available()) - { - while (Serial.available() > 0) - { - Motion(); - //RETURN_ORIGIN(); - } - } -} diff --git a/Arduino files/Main/Motion.h b/Arduino files/Main/Motion.h deleted file mode 100644 index 3df8645..0000000 --- a/Arduino files/Main/Motion.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - Copyright © 2022 MackaJunest - Permission is hereby granted, free of charge, to any person obtaining a copy of - this software and associated documentation files (the “Software”), to deal in - the Software without restriction, including without limitation the rights to - use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies - of the Software, and to permit persons to whom the Software is furnished to do - so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. -************************************************************************************** - - Front - ____ - Leg1 | |Leg2 - left | | right - | | - Leg4 ---- Leg3 - Back - H=ham - S=shank - - L1H ____ - L1S LEG1 - - L2H ____ - L2S LEG2 - - L3H ____ - L3S LEG3 - - L4H ____ - L4S LEG4 -*/ -#ifndef __MOTION_H__ -#define __MOTION_H__ - -void Motion() -{ - motion[0] = Serial.parseInt(); - motion[1] = Serial.parseInt(); - motion[2] = Serial.parseInt(); - motion[3] = Serial.parseInt(); - motion[4] = Serial.parseInt(); - motion[5] = Serial.parseInt(); - motion[6] = Serial.parseInt(); - motion[7] = Serial.parseInt(); - shank1 = (motion[0] + motion[1]); - shank2 = (motion[2] + motion[3]); - shank3 = (motion[4] + motion[5]); - shank4 = (motion[6] + motion[7]); - ham1 = motion[0]; - ham2 = motion[2]; - ham3 = motion[4]; - ham4 = motion[6]; - L1S.write((shank1-35) / 1.5); // "/1.5" for 270 degree servo - L1H.write(ham1 / 1.5); - L2S.write((shank2-35) / 1.5); - L2H.write(ham2 / 1.5); - L3S.write((shank3-35) / 1.5); - L3H.write(ham3 / 1.5); - L4S.write((shank4-35) / 1.5); - L4H.write(ham4 / 1.5); -} -#endif diff --git a/Arduino files/Main/Return_origin.h b/Arduino files/Main/Return_origin.h deleted file mode 100644 index fb7c94f..0000000 --- a/Arduino files/Main/Return_origin.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - Copyright © 2022 MackaJunest - Permission is hereby granted, free of charge, to any person obtaining a copy of - this software and associated documentation files (the “Software”), to deal in - the Software without restriction, including without limitation the rights to - use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies - of the Software, and to permit persons to whom the Software is furnished to do - so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. -************************************************************************************** - - Front - ____ - Leg1 | |Leg2 - left | | right - | | - Leg4 ---- Leg3 - Back - H=ham - S=shank - - L1H ____ - L1S LEG1 - - L2H ____ - L2S LEG2 - - L3H ____ - L3S LEG3 - - L4H ____ - L4S LEG4 -*/ -#ifndef __RETURN_ORIGIN_H__ -#define __RETURN_ORIGIN_H__ - -void RETURN_ORIGIN() -{ - L1S.write(0); - L1H.write(0); - L2S.write(0); - L2H.write(0); - L3S.write(0); - L3H.write(0); - L4S.write(0); - L4H.write(0); -} -#endif diff --git a/Arduino files/Main/Setup.h b/Arduino files/Main/Setup.h deleted file mode 100644 index f478335..0000000 --- a/Arduino files/Main/Setup.h +++ /dev/null @@ -1,91 +0,0 @@ -/* - Copyright © 2022 MackaJunest - Permission is hereby granted, free of charge, to any person obtaining a copy of - this software and associated documentation files (the “Software”), to deal in - the Software without restriction, including without limitation the rights to - use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies - of the Software, and to permit persons to whom the Software is furnished to do - so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. -************************************************************************************** - - Front - ____ - Leg1 | |Leg2 - left | | right - | | - Leg4 ---- Leg3 - Back - H=ham - S=shank - - L1H ____ - L1S LEG1 - - L2H ____ - L2S LEG2 - - L3H ____ - L3S LEG3 - - L4H ____ - L4S LEG4 -*/ -#ifndef __SETUP_H__ -#define __SETUP_H__ -#include - -long int motion[8]; -int shank1, shank2, shank3, shank4, ham1, ham2, ham3, ham4; - -Servo L1H; -Servo L1S; -Servo L2H; -Servo L2S; -Servo L3H; -Servo L3S; -Servo L4H; -Servo L4S; - -void Init() -{ - L1H.write(35 / 1.5);// "/1.5" for 270 degree servo - L1S.write(100 / 1.5); - - L2H.write(35 / 1.5); - L2S.write(100 / 1.5); - - L3H.write(35 / 1.5); - L3S.write(100 / 1.5); - - L4H.write(35 / 1.5); - L4S.write(100 / 1.5); -} - -void setup() -{ - Serial.begin(115200); - Serial.setTimeout(5); - L1H.attach(2); - L1S.attach(3); - L2H.attach(4); - L2S.attach(5); - L3H.attach(6); - L3S.attach(7); - L4H.attach(8); - L4S.attach(9); - - Init(); - -} -#endif