Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
ede30229
Commit
ede30229
authored
6 years ago
by
Martina
Committed by
Daniel Agar
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
FlightTasks: add getter method to retrieve empty avoidance waypoint in the
mc_pos_control
parent
8190242e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/FlightTasks/FlightTasks.cpp
+6
-0
6 additions, 0 deletions
src/lib/FlightTasks/FlightTasks.cpp
src/lib/FlightTasks/FlightTasks.hpp
+6
-0
6 additions, 0 deletions
src/lib/FlightTasks/FlightTasks.hpp
with
12 additions
and
0 deletions
src/lib/FlightTasks/FlightTasks.cpp
+
6
−
0
View file @
ede30229
...
...
@@ -58,6 +58,12 @@ const vehicle_trajectory_waypoint_s FlightTasks::getAvoidanceWaypoint()
}
}
const
vehicle_trajectory_waypoint_s
FlightTasks
::
getEmptyAvoidanceWaypoint
()
{
return
FlightTask
::
empty_trajectory_waypoint
;
}
int
FlightTasks
::
switchTask
(
FlightTaskIndex
new_task_index
)
{
// switch to the running task, nothing to do
...
...
This diff is collapsed.
Click to expand it.
src/lib/FlightTasks/FlightTasks.hpp
+
6
−
0
View file @
ede30229
...
...
@@ -83,6 +83,12 @@ public:
*/
const
vehicle_trajectory_waypoint_s
getAvoidanceWaypoint
();
/**
* Get empty avoidance desired waypoints
* @return empty triplets in the mc_pos_control
*/
const
vehicle_trajectory_waypoint_s
getEmptyAvoidanceWaypoint
();
/**
* Switch to the next task in the available list (for testing)
* @return 1 on success, <0 on error
...
...
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