From 26b8d8cb49e21c26046716afd94c7801e859b503 Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Fri, 10 Dec 2021 23:18:45 -0500 Subject: [PATCH] update --- software/rpi/hexapod.py | 44 +++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/software/rpi/hexapod.py b/software/rpi/hexapod.py index e28f490..11d11a8 100644 --- a/software/rpi/hexapod.py +++ b/software/rpi/hexapod.py @@ -111,32 +111,24 @@ class Hexapod: self.standby() time.sleep(1) - # for mm in range(0, 20): - # self.move(self.forward_path, 0.005) - - # for mm in range(0, 20): - # self.move(self.backward_path, 0.005) - - # for mm in range(0, 20): - # self.move(self.fastforward_path, 0.005) - - # for mm in range(0, 20): - # self.move(self.fastbackward_path, 0.005) - - # for mm in range(0, 20): - # self.move(self.leftturn_path, 0.005) - - # for mm in range(0, 20): - # self.move(self.rightturn_path, 0.005) - - # for mm in range(0, 20): - # self.move(self.shiftleft_path, 0.005) - - # for mm in range(0, 20): - # self.move(self.shiftright_path, 0.005) - - # for mm in range(0, 20): - # self.move(self.climb_path, 0.005) + for mm in range(0, 20): + self.move(self.forward_path, 0.005) + for mm in range(0, 20): + self.move(self.backward_path, 0.005) + for mm in range(0, 20): + self.move(self.fastforward_path, 0.005) + for mm in range(0, 20): + self.move(self.fastbackward_path, 0.005) + for mm in range(0, 20): + self.move(self.leftturn_path, 0.005) + for mm in range(0, 20): + self.move(self.rightturn_path, 0.005) + for mm in range(0, 20): + self.move(self.shiftleft_path, 0.005) + for mm in range(0, 20): + self.move(self.shiftright_path, 0.005) + for mm in range(0, 20): + self.move(self.climb_path, 0.005) for mm in range(0, 20): self.move(self.rotatex_path, 0.005)