Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
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
Nicolò Caruso
Skyward Boardcore
Commits
a88c89f3
Commit
a88c89f3
authored
2 years ago
by
Matteo Pignataro
Committed by
Niccolò Betto
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[TaskScheduler] Fixed pipeline
parent
8639cd28
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/shared/scheduler/TaskScheduler.cpp
+1
-1
1 addition, 1 deletion
src/shared/scheduler/TaskScheduler.cpp
src/tests/actuators/test-servo.cpp
+1
-1
1 addition, 1 deletion
src/tests/actuators/test-servo.cpp
with
2 additions
and
2 deletions
src/shared/scheduler/TaskScheduler.cpp
+
1
−
1
View file @
a88c89f3
...
@@ -73,7 +73,7 @@ uint8_t TaskScheduler::addTask(function_t function, uint32_t period,
...
@@ -73,7 +73,7 @@ uint8_t TaskScheduler::addTask(function_t function, uint32_t period,
uint8_t
id
=
1
;
uint8_t
id
=
1
;
// Find a suitable id for the new task
// Find a suitable id for the new task
for
(;
tasks
[
id
]
!=
nullptr
&&
id
<
255
;
++
id
)
for
(;
id
<
255
&&
tasks
[
id
]
!=
nullptr
;
++
id
)
;
;
return
addTask
(
function
,
period
,
id
,
policy
,
startTick
);
return
addTask
(
function
,
period
,
id
,
policy
,
startTick
);
...
...
This diff is collapsed.
Click to expand it.
src/tests/actuators/test-servo.cpp
+
1
−
1
View file @
a88c89f3
...
@@ -80,7 +80,7 @@ int main()
...
@@ -80,7 +80,7 @@ int main()
// Start a periodic task to move the first three servos
// Start a periodic task to move the first three servos
TaskScheduler
scheduler
;
TaskScheduler
scheduler
;
uint8_t
id
=
scheduler
.
addTask
(
&
moveServo
,
2
*
1000
);
scheduler
.
addTask
(
&
moveServo
,
2
*
1000
);
scheduler
.
start
();
scheduler
.
start
();
// Control the fourth servo manually
// Control the fourth servo manually
...
...
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