Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oliver Ljungberg
Climb
Commits
5a8a98c0
Unverified
Commit
5a8a98c0
authored
3 years ago
by
DNOALEE
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2 from EPFLepuck/main
Remove static acc_z
parents
92581c72
f32e815a
Branches
LED
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compute_case.c
+1
-1
1 addition, 1 deletion
compute_case.c
with
1 addition
and
1 deletion
compute_case.c
+
1
−
1
View file @
5a8a98c0
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
#define GRAVITY 9.80665f
#define GRAVITY 9.80665f
static
float
acc_x
=
0
;
static
float
acc_x
=
0
;
static
float
acc_z
=
0
;
static
uint8_t
acc_case
=
0
;
static
uint8_t
acc_case
=
0
;
// Thread that tells us in which case (0, I, II, III, IV) (SPQR) we are
// Thread that tells us in which case (0, I, II, III, IV) (SPQR) we are
...
@@ -29,6 +28,7 @@ static THD_FUNCTION(SelectCase, arg) {
...
@@ -29,6 +28,7 @@ static THD_FUNCTION(SelectCase, arg) {
float
acc_y
=
0
;
float
acc_y
=
0
;
float
acc_z
=
0
;
while
(
1
){
while
(
1
){
// get x and y component accelerometer
// get x and y component accelerometer
...
...
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