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
d11c6af9
Commit
d11c6af9
authored
6 years ago
by
Daniel Agar
Committed by
Lorenz Meier
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
FlightTaskAuto don't pass position setpoint by value
parent
12dd9b47
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.cpp
+1
-1
1 addition, 1 deletion
src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.cpp
src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp
+1
-1
1 addition, 1 deletion
src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp
with
2 additions
and
2 deletions
src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.cpp
+
1
−
1
View file @
d11c6af9
...
...
@@ -300,7 +300,7 @@ void FlightTaskAuto::_updateAvoidanceWaypoints()
_desired_waypoint
.
waypoints
[
vehicle_trajectory_waypoint_s
::
POINT_2
].
point_valid
=
true
;
}
bool
FlightTaskAuto
::
_isFinite
(
const
position_setpoint_s
sp
)
bool
FlightTaskAuto
::
_isFinite
(
const
position_setpoint_s
&
sp
)
{
return
(
PX4_ISFINITE
(
sp
.
lat
)
&&
PX4_ISFINITE
(
sp
.
lon
)
&&
PX4_ISFINITE
(
sp
.
alt
));
}
...
...
This diff is collapsed.
Click to expand it.
src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp
+
1
−
1
View file @
d11c6af9
...
...
@@ -123,7 +123,7 @@ private:
hrt_abstime
_time_stamp_reference
=
0
;
/**< time stamp when last reference update occured. */
bool
_evaluateTriplets
();
/**< Checks and sets triplets. */
bool
_isFinite
(
const
position_setpoint_s
sp
);
/**< Checks if all waypoint triplets are finite. */
bool
_isFinite
(
const
position_setpoint_s
&
sp
);
/**< Checks if all waypoint triplets are finite. */
bool
_evaluateGlobalReference
();
/**< Check is global reference is available. */
float
_getVelocityFromAngle
(
const
float
angle
);
/**< Computes the speed at target depending on angle. */
State
_getCurrentState
();
/**< Computes the current vehicle state based on the vehicle position and navigator triplets. */
...
...
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