Skip to content

Commit 12c686d

Browse files
committed
extras landing_target: fix #2080 fov vector init
Signed-off-by: Vladimir Ermakov <[email protected]>
1 parent 68e56a2 commit 12c686d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
with:
2323
path: "${{ env.CCACHE_DIR }}"
2424
key: "ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}"
25-
- uses: 'ros-industrial/industrial_ci@master'
25+
- uses: 'ros-industrial/industrial_ci@master' # nosemgrep
2626
env: ${{matrix.env}}

mavros_extras/src/plugins/landing_target.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class LandingTargetPlugin : public plugin::PluginBase,
232232

233233
Eigen::Vector2f angle;
234234
Eigen::Vector2f size_rad;
235-
Eigen::Vector2f fov;
235+
Eigen::Vector2f fov(fox_x, fox_y);
236236

237237
// the norm of the position vector is considered the distance to the landing target
238238
float distance = pos.norm();

0 commit comments

Comments
 (0)