Skip to content
Snippets Groups Projects
Commit 611104f6 authored by Federico Mandelli's avatar Federico Mandelli Committed by Matteo Pignataro
Browse files

[Servo] Fixed getPosition method with correct angle values

parent 2f97c8f7
No related branches found
No related tags found
1 merge request!99[Servo] Fixed extra 0 in some getPosition()
Pipeline #4481 passed
......@@ -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()
{
......
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment