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
843cb05e
Commit
843cb05e
authored
7 years ago
by
Beat Küng
Committed by
Lorenz Meier
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mavlink_mission: fix send_mission_count: must always use MAV_MISSION_TYPE_MISSION
Because it's only used for missions
parent
34e31641
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/mavlink/mavlink_mission.cpp
+4
-2
4 additions, 2 deletions
src/modules/mavlink/mavlink_mission.cpp
with
4 additions
and
2 deletions
src/modules/mavlink/mavlink_mission.cpp
+
4
−
2
View file @
843cb05e
...
...
@@ -273,14 +273,16 @@ MavlinkMissionManager::send_mission_ack(uint8_t sysid, uint8_t compid, uint8_t t
void
MavlinkMissionManager
::
send_mission_current
(
uint16_t
seq
)
{
if
(
seq
<
current_item_count
())
{
unsigned
item_count
=
_count
[(
uint8_t
)
MAV_MISSION_TYPE_MISSION
];
if
(
seq
<
item_count
)
{
mavlink_mission_current_t
wpc
;
wpc
.
seq
=
seq
;
mavlink_msg_mission_current_send_struct
(
_mavlink
->
get_channel
(),
&
wpc
);
}
else
if
(
seq
==
0
&&
current_
item_count
()
==
0
)
{
}
else
if
(
seq
==
0
&&
item_count
==
0
)
{
/* don't broadcast if no WPs */
}
else
{
...
...
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