Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pousseseringue-arduino
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
FabLAAS
PousseSeringue
pousseseringue-arduino
Commits
3efa3e97
Commit
3efa3e97
authored
1 year ago
by
Malaurie Bernard
Browse files
Options
Downloads
Patches
Plain Diff
Code editting : mm_per_sec_per_sec become acceleration_mm_per_sec_per_sec in motor setter
parent
df157b03
No related branches found
No related tags found
1 merge request
!17
Malaurie's work on UI + CLI interface + AccelStepper interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
motor.h
+5
-5
5 additions, 5 deletions
motor.h
with
5 additions
and
5 deletions
motor.h
+
5
−
5
View file @
3efa3e97
...
@@ -84,13 +84,13 @@ public:
...
@@ -84,13 +84,13 @@ public:
return
(
stepper
.
speed
()
!=
0
);
return
(
stepper
.
speed
()
!=
0
);
}
}
void
set_accel_mm_per_sec_per_sec
(
float
mm_per_sec_per_sec
)
void
set_accel_mm_per_sec_per_sec
(
float
acceleration_
mm_per_sec_per_sec
)
{
{
if
(
mm_per_sec_per_sec
==
0
)
if
(
acceleration_
mm_per_sec_per_sec
==
0
)
mm_per_sec_per_sec
=
1000
;
acceleration_
mm_per_sec_per_sec
=
1000
;
_acceleration_mm_per_sec_per_sec
=
mm_per_sec_per_sec
;
_acceleration_mm_per_sec_per_sec
=
acceleration_
mm_per_sec_per_sec
;
#if !CORE_MOCK
#if !CORE_MOCK
stepper
.
setAcceleration
(
mm_to_step
(
mm_per_sec_per_sec
));
stepper
.
setAcceleration
(
mm_to_step
(
acceleration_
mm_per_sec_per_sec
));
#endif
#endif
}
}
...
...
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