Skip to content

Commit 6188939

Browse files
committed
Also make the setMaxTorque API available from the Servo abstraction.
1 parent f9969af commit 6188939

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Braccio++.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ class Servo
187187
inline void disengage() { _servos.disengage(_id); }
188188
inline void engage() { _servos.engage(_id); }
189189
inline bool engaged() { return _servos.isEngaged(_id); }
190+
inline void setMaxTorque(uint16_t const max_torque) { _servos.setMaxTorque(_id, max_torque); }
190191

191192
inline Servo & move() { return *this; }
192193
inline Servo & to (float const angle) { _servos.setPosition(_id, angle); return *this; }

0 commit comments

Comments
 (0)