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
4c6f4283
Commit
4c6f4283
authored
7 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Added a function to get the current phase of the stairs algorithm.
parent
787cde6e
No related branches found
No related tags found
2 merge requests
!5
Dynamixel manager
,
!2
Smart charger fw
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/stairs.h
+1
-0
1 addition, 0 deletions
include/stairs.h
src/stairs.c
+5
-0
5 additions, 0 deletions
src/stairs.c
with
6 additions
and
0 deletions
include/stairs.h
+
1
−
0
View file @
4c6f4283
...
...
@@ -15,6 +15,7 @@ inline uint16_t stairs_get_period(void);
void
stairs_start
(
void
);
void
stairs_stop
(
void
);
uint8_t
is_climbing_stairs
(
void
);
uint8_t
stairs_get_phase
(
void
);
// operation functions
uint8_t
stairs_in_range
(
unsigned
short
int
address
,
unsigned
short
int
length
);
...
...
This diff is collapsed.
Click to expand it.
src/stairs.c
+
5
−
0
View file @
4c6f4283
...
...
@@ -112,6 +112,11 @@ uint8_t is_climbing_stairs(void)
return
0x00
;
}
uint8_t
stairs_get_phase
(
void
)
{
return
(
int8_t
)
ram_data
[
DARWIN_STAIRS_CNTRL
]
&
STAIRS_PHASE
;
}
// motion manager interface functions
void
stairs_process
(
void
)
{
...
...
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