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