Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bioloid_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
bioloid_stm32_fw
Commits
c2088f00
Commit
c2088f00
authored
9 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Added the walking interface to the dynamixel slave.
parent
652f78e2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/bioloid_registers.h
+2
-0
2 additions, 0 deletions
include/bioloid_registers.h
src/bioloid_dyn_slave.c
+4
-1
4 additions, 1 deletion
src/bioloid_dyn_slave.c
src/bioloid_gyro.c
+1
-1
1 addition, 1 deletion
src/bioloid_gyro.c
with
7 additions
and
2 deletions
include/bioloid_registers.h
+
2
−
0
View file @
c2088f00
...
...
@@ -354,6 +354,8 @@ typedef enum {
#define GYRO_BASE_ADDRESS 0x017C
#define GYRO_MEM_LENGTH 6
#define GYRO_EEPROM_ADDRESS 0x0031
#define GYRO_EEPROM_LENGTH 2
#define GYRO_CALIBRATE 0x01
#define GYRO_EN_CAL_INT 0x02
#define GYRO_EN_FALL_DET 0x04
...
...
This diff is collapsed.
Click to expand it.
src/bioloid_dyn_slave.c
+
4
−
1
View file @
c2088f00
...
...
@@ -86,9 +86,12 @@ unsigned char bioloid_on_write(unsigned short int address,unsigned short int len
// action commands
if
(
action_in_range
(
address
,
length
))
action_process_write_cmd
(
address
,
length
,
data
);
//
action
commands
//
gyro
commands
if
(
gyro_in_range
(
address
,
length
))
gyro_process_write_cmd
(
address
,
length
,
data
);
// walk commands
if
(
walking_in_range
(
address
,
length
))
walking_process_write_cmd
(
address
,
length
,
data
);
// write eeprom
for
(
i
=
address
,
j
=
0
;
i
<
LAST_EEPROM_OFFSET
&&
i
<
(
address
+
length
);
i
++
,
j
++
)
EE_WriteVariable
(
i
,
data
[
j
]);
...
...
This diff is collapsed.
Click to expand it.
src/bioloid_gyro.c
+
1
−
1
View file @
c2088f00
...
...
@@ -59,7 +59,7 @@ inline void gyro_get_offsets(uint16_t *fb_offset,uint16_t *lr_offset)
uint8_t
gyro_in_range
(
unsigned
short
int
address
,
unsigned
short
int
length
)
{
if
(
ram_in_window
(
GYRO_BASE_ADDRESS
,
GYRO_MEM_LENGTH
,
address
,
length
)
||
ram_in_window
(
BIOLIOD_GYRO_FB_ADC_CH
,
BIOLIOD_GYRO_LR_ADC_C
H
,
address
,
length
))
ram_in_window
(
GYRO_EEPROM_ADDRESS
,
GYRO_EEPROM_LENGT
H
,
address
,
length
))
return
0x01
;
else
return
0x00
;
...
...
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