|
|
@ -132,18 +132,18 @@ class Hexapod(Thread):
|
|
|
|
correction=self.config.get('leg1Offset', [0, 0, 0]), scale=self.config.get('leg1Scale', [1, 1, 1])),
|
|
|
|
correction=self.config.get('leg1Offset', [0, 0, 0]), scale=self.config.get('leg1Scale', [1, 1, 1])),
|
|
|
|
# rear right
|
|
|
|
# rear right
|
|
|
|
Leg(2,
|
|
|
|
Leg(2,
|
|
|
|
[self.pca_left.servo[12], self.pca_left.servo[13],
|
|
|
|
[self.pca_left.servo[14], self.pca_left.servo[13],
|
|
|
|
self.pca_left.servo[14]],
|
|
|
|
self.pca_left.servo[12]],
|
|
|
|
correction=self.config.get('leg2Offset', [0, 0, 0]), scale=self.config.get('leg2Scale', [1, 1, 1])),
|
|
|
|
correction=self.config.get('leg2Offset', [0, 0, 0]), scale=self.config.get('leg2Scale', [1, 1, 1])),
|
|
|
|
# rear left
|
|
|
|
# rear left
|
|
|
|
Leg(3,
|
|
|
|
Leg(3,
|
|
|
|
[self.pca_right.servo[15], self.pca_right.servo[16],
|
|
|
|
[self.pca_right.servo[17], self.pca_right.servo[16],
|
|
|
|
self.pca_right.servo[17]],
|
|
|
|
self.pca_right.servo[15]],
|
|
|
|
correction=self.config.get('leg3Offset', [0, 0, 0]), scale=self.config.get('leg3Scale', [1, 1, 1])),
|
|
|
|
correction=self.config.get('leg3Offset', [0, 0, 0]), scale=self.config.get('leg3Scale', [1, 1, 1])),
|
|
|
|
# center left
|
|
|
|
# center left
|
|
|
|
Leg(4,
|
|
|
|
Leg(4,
|
|
|
|
[self.pca_right.servo[9], self.pca_right.servo[10],
|
|
|
|
[self.pca_right.servo[11], self.pca_right.servo[10],
|
|
|
|
self.pca_right.servo[11]],
|
|
|
|
self.pca_right.servo[9]],
|
|
|
|
correction=self.config.get('leg4Offset', [0, 0, 0]), scale=self.config.get('leg4Scale', [1, 1, 1])),
|
|
|
|
correction=self.config.get('leg4Offset', [0, 0, 0]), scale=self.config.get('leg4Scale', [1, 1, 1])),
|
|
|
|
# front left
|
|
|
|
# front left
|
|
|
|
Leg(5,
|
|
|
|
Leg(5,
|
|
|
|