Skip to content

Commit ea8c8e2

Browse files
committed
function added
1 parent f49eaa0 commit ea8c8e2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

meArm.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ void meArm::begin(int pinBase, int pinShoulder, int pinElbow, int pinGripper) {
6666
openGripper();
6767
}
6868

69+
void meArm::end() {
70+
_base.detach();
71+
_shoulder.detach();
72+
_elbow.detach();
73+
_gripper.detach();
74+
}
75+
6976
//Set servos to reach a certain point directly without caring how we get there
7077
void meArm::goDirectlyTo(float x, float y, float z) {
7178
float radBase,radShoulder,radElbow;

meArm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class meArm {
3232
int sweepMinGripper=75, int sweepMaxGripper=115, float angleMinGripper=pi/2, float angleMaxGripper=0);
3333
//required before running
3434
void begin(int pinBase, int pinShoulder, int pinElbow, int pinGripper);
35+
void end();
3536
//Travel smoothly from current point to another point
3637
void gotoPoint(float x, float y, float z);
3738
//Set servos to reach a certain point directly without caring how we get there

0 commit comments

Comments
 (0)