diff --git a/src/shared/actuators/Servo/Servo.cpp b/src/shared/actuators/Servo/Servo.cpp index 2cabb2505381e44168d7fe90c8346173e07f0cde..3cf442736eac804a2fb97e15c6e1264d7c20c9bb 100644 --- a/src/shared/actuators/Servo/Servo.cpp +++ b/src/shared/actuators/Servo/Servo.cpp @@ -103,9 +103,9 @@ float Servo::getPosition() float Servo::getPosition90Deg() { return getPosition() * 90; } -float Servo::getPosition180Deg() { return getPosition() * 1800; } +float Servo::getPosition180Deg() { return getPosition() * 180; } -float Servo::getPosition360Deg() { return getPosition() * 3600; } +float Servo::getPosition360Deg() { return getPosition() * 360; } ServoData Servo::getState() { diff --git a/src/shared/actuators/Servo/Servo.h b/src/shared/actuators/Servo/Servo.h index e4a792cc1380044597d0da1a9c08f7f0c1a3fc76..5375204898292cd9efbe5a530fba244beede52e9 100644 --- a/src/shared/actuators/Servo/Servo.h +++ b/src/shared/actuators/Servo/Servo.h @@ -53,7 +53,7 @@ namespace Boardcore * Note that the peripheral clock of the undelying timer used to generate the * PWM signal, is enabled when the object is created and disabled when * destructed. When using the same timer for two or more sensors keep in mind - * that you could encouter issues. + * that you could encounter issues. */ class Servo {