Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Skyward Boardcore
Commits
611104f6
Commit
611104f6
authored
2 years ago
by
Federico Mandelli
Committed by
Matteo Pignataro
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[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
2 years ago
Stage: build
Stage: test
Stage: lint
Stage: documentation
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/shared/actuators/Servo/Servo.cpp
+2
-2
2 additions, 2 deletions
src/shared/actuators/Servo/Servo.cpp
src/shared/actuators/Servo/Servo.h
+1
-1
1 addition, 1 deletion
src/shared/actuators/Servo/Servo.h
with
3 additions
and
3 deletions
src/shared/actuators/Servo/Servo.cpp
+
2
−
2
View file @
611104f6
...
...
@@ -103,9 +103,9 @@ float Servo::getPosition()
float
Servo
::
getPosition90Deg
()
{
return
getPosition
()
*
90
;
}
float
Servo
::
getPosition180Deg
()
{
return
getPosition
()
*
180
0
;
}
float
Servo
::
getPosition180Deg
()
{
return
getPosition
()
*
180
;
}
float
Servo
::
getPosition360Deg
()
{
return
getPosition
()
*
360
0
;
}
float
Servo
::
getPosition360Deg
()
{
return
getPosition
()
*
360
;
}
ServoData
Servo
::
getState
()
{
...
...
This diff is collapsed.
Click to expand it.
src/shared/actuators/Servo/Servo.h
+
1
−
1
View file @
611104f6
...
...
@@ -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 encou
n
ter issues.
*/
class
Servo
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment