Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dynamixel_motor_cont
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
labrobotica
drivers
dynamixel_motor_cont
Commits
6f1777a8
Commit
6f1777a8
authored
2 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Made public the to_angles() and to_speeds() functions.
parent
2e269b80
No related branches found
No related tags found
1 merge request
!3
Add support xm 540
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/dynamixel_motor.h
+11
-11
11 additions, 11 deletions
include/dynamixel_motor.h
src/dynamixel_motor.cpp
+2
-2
2 additions, 2 deletions
src/dynamixel_motor.cpp
with
13 additions
and
13 deletions
include/dynamixel_motor.h
+
11
−
11
View file @
6f1777a8
...
...
@@ -125,16 +125,6 @@ class CDynamixelMotor
*/
bool
enabled
;
protected:
/**
* \brief
*
*/
double
to_angles
(
unsigned
int
counts
);
/**
* \brief
*
*/
double
to_speeds
(
unsigned
int
counts
);
/**
* \brief
*
...
...
@@ -161,6 +151,16 @@ class CDynamixelMotor
*
*/
void
set_control_mode
(
control_mode
mode
);
/**
* \brief
*
*/
double
to_angles
(
unsigned
int
counts
);
/**
* \brief
*
*/
double
to_speeds
(
signed
int
counts
);
/**
* \brief
*
...
...
@@ -170,7 +170,7 @@ class CDynamixelMotor
* \brief
*
*/
un
signed
int
from_speeds
(
double
speed
);
signed
int
from_speeds
(
double
speed
);
/**
* \brief
*
...
...
This diff is collapsed.
Click to expand it.
src/dynamixel_motor.cpp
+
2
−
2
View file @
6f1777a8
...
...
@@ -82,7 +82,7 @@ unsigned int CDynamixelMotor::from_angles(double angle)
return
counts
;
}
un
signed
int
CDynamixelMotor
::
from_speeds
(
double
speed
)
signed
int
CDynamixelMotor
::
from_speeds
(
double
speed
)
{
unsigned
int
counts
;
...
...
@@ -105,7 +105,7 @@ double CDynamixelMotor::to_angles(unsigned int counts)
return
angle
;
}
double
CDynamixelMotor
::
to_speeds
(
un
signed
int
counts
)
double
CDynamixelMotor
::
to_speeds
(
signed
int
counts
)
{
double
speed
;
...
...
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