Skip to content

Commit c326b50

Browse files
I didn't do the merge right (#70)
1 parent 1ba6e09 commit c326b50

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

src/rov/rov_pca9685/src/ServoDriver.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,6 @@ void ServoDriver::setThrottle(uint8_t channel, float throttle) {
5858
driver_board.setUS(channel, f2imap(throttle, -1.0, 1.0, s->us_minimum, s->us_maximum));
5959
}
6060

61-
void ServoDriver::setDuty(uint8_t channel, float duty) {
62-
driver_board.setDuty(channel, duty);
63-
}
64-
65-
void ServoDriver::setUS(uint8_t channel, uint16_t us) {
66-
driver_board.setUS(channel, us);
67-
}
68-
69-
void ServoDriver::setThrottle(uint8_t channel, float throttle) {
70-
if (!continuous_servos.count(channel)) {
71-
RCLCPP_WARN(rclcpp::get_logger("ServoDriver"), "Attempted to set throttle on non-continuous servo");
72-
return;
73-
}
74-
ContinuousServo* s = &continuous_servos[channel];
75-
driver_board.setUS(channel, f2imap(throttle, -1.0, 1.0, s->us_minimum, s->us_maximum));
76-
}
77-
7861
void ServoDriver::setAngle(uint8_t channel, float angle) {
7962
if (!servos.count(channel)) {
8063
RCLCPP_WARN(rclcpp::get_logger("ServoDriver"), "Attempted to set angle on continuous servo");

0 commit comments

Comments
 (0)