Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
darwin_stm32_fw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
humanoides
darwin
darwin_stm32_fw
Commits
63b86381
Commit
63b86381
authored
8 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Added some new servo identifiers and a function to detect if the model is a servo or not.
parent
2b6ce8d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/dyn_servos.h
+10
-0
10 additions, 0 deletions
include/dyn_servos.h
with
10 additions
and
0 deletions
include/dyn_servos.h
+
10
−
0
View file @
63b86381
...
@@ -2,9 +2,14 @@
...
@@ -2,9 +2,14 @@
#define _DYN_SERVOS_H
#define _DYN_SERVOS_H
// servo models
// servo models
#define SERVO_DX113 0x0071
#define SERVO_DX116 0x0074
#define SERVO_DX117 0x0075
#define SERVO_AX12A 0x000C
#define SERVO_AX12A 0x000C
#define SERVO_AX12W 0x012C
#define SERVO_AX12W 0x012C
#define SERVO_AX18A 0x0012
#define SERVO_AX18A 0x0012
#define SERVO_RX10 0x000A
#define SERVO_MX12W 0x0168
#define SERVO_MX28 0x001D
#define SERVO_MX28 0x001D
#define SERVO_RX24F 0x0018
#define SERVO_RX24F 0x0018
#define SERVO_RX28 0x001C
#define SERVO_RX28 0x001C
...
@@ -14,6 +19,11 @@
...
@@ -14,6 +19,11 @@
#define SERVO_MX106 0x0140
#define SERVO_MX106 0x0140
#define SERVO_XL320 0x015E
#define SERVO_XL320 0x015E
#define IS_SERVO(model) (model==SERVO_DX113 || model==SERVO_DX116 || model==SERVO_DX117 || model==SERVO_AX12A \
model==SERVO_AX12W || model==SERVO_AX18A || model==SERVO_RX10 || model==SERVO_MX12W \
model==SERVO_MX28 || model==SERVO_RX24F || model==SERVO_RX28 || model==SERVO_RX64 \
model==SERVO_MX64 || model==SERVO_EX106 || model==SERVO_MX106 || model==SERVO_XL320)
// Servo register map
// Servo register map
typedef
enum
{
typedef
enum
{
P_MODEL_NUMBER_L
=
0
,
P_MODEL_NUMBER_L
=
0
,
...
...
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