Library to control a 3DOF leg with a PCA9685.
Diff: HEXAPOD_LEG.h
- Revision:
- 3:9cc530686346
- Parent:
- 0:ead365546ca5
--- a/HEXAPOD_LEG.h Thu Apr 14 10:03:45 2016 +0000 +++ b/HEXAPOD_LEG.h Mon May 02 13:41:10 2016 +0000 @@ -10,7 +10,7 @@ public: Hexapod_Leg(PCA9685 Driver, calibrated_leg_centre leg_cent, calibrated_leg_1_degree leg_step, leg_outputs leg_out, bool ON_RHS); void set_joint_angles(float angle_a, float angle_b, float angle_c); - + void set_leg_position(leg_x_angles angles); private: float angle_to_pwm(float angle, char joint);