Skip to content

Commit

Permalink
extras: trajectory: make linter happy after #1667
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
  • Loading branch information
vooon committed Dec 3, 2021
1 parent dd130c7 commit d1c4d1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mavros_extras/src/plugins/trajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,11 @@ class TrajectoryPlugin : public plugin::Plugin
};

tr_desired.header = uas->synchronized_header("local_origin", trajectory.time_usec);

if (trajectory.valid_points > tr_desired.point_valid.size()) {
return ;
return;
}

for (int i = 0; i < trajectory.valid_points; ++i) {
tr_desired.point_valid[i] = true;
}
Expand Down

0 comments on commit d1c4d1e

Please sign in to comment.