mirror of
https://github.com/modelec/servo_moteurs.git
synced 2026-01-18 16:47:23 +01:00
blabla
This commit is contained in:
@@ -56,8 +56,8 @@ void MyTCPClient::handleMessage(const std::string &message) {
|
||||
return;
|
||||
}
|
||||
int servo = std::stoi(args[0]);
|
||||
double angle = std::stof(args[1]);
|
||||
this->pwm_setServoPosition(servo, angle);
|
||||
int angleDeg = static_cast<int>(std::stof(args[1]));
|
||||
this->pwm_setServoPosition(servo, angleDeg);
|
||||
} else if (token[2] == "clear") {
|
||||
this->pwm_clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user