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
2967763b
Commit
2967763b
authored
11 years ago
by
Anton Babushkin
Browse files
Options
Downloads
Patches
Plain Diff
mavlink: heartbeat message bug fixed
parent
355715a0
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_messages.cpp
+3
-3
3 additions, 3 deletions
src/modules/mavlink/mavlink_messages.cpp
with
3 additions
and
3 deletions
src/modules/mavlink/mavlink_messages.cpp
+
3
−
3
View file @
2967763b
...
...
@@ -38,7 +38,7 @@ protected:
status
=
(
struct
vehicle_status_s
*
)
status_sub
->
get_data
();
pos_sp_triplet_sub
=
mavlink
->
add_orb_subscription
(
ORB_ID
(
position_setpoint_triplet
),
sizeof
(
position_setpoint_triplet_s
));
pos_sp_triplet
=
(
struct
position_setpoint_triplet_s
*
)
status
_sub
->
get_data
();
pos_sp_triplet
=
(
struct
position_setpoint_triplet_s
*
)
pos_sp_triplet
_sub
->
get_data
();
}
void
send
(
const
hrt_abstime
t
)
{
...
...
@@ -62,6 +62,7 @@ protected:
/* main state */
mavlink_base_mode
|=
MAV_MODE_FLAG_CUSTOM_MODE_ENABLED
;
union
px4_custom_mode
custom_mode
;
custom_mode
.
data
=
0
;
if
(
pos_sp_triplet
->
nav_state
==
NAV_STATE_NONE
)
{
...
...
@@ -96,7 +97,6 @@ protected:
custom_mode
.
sub_mode
=
PX4_CUSTOM_SUB_MODE_AUTO_LAND
;
}
}
mavlink_custom_mode
=
custom_mode
.
data
;
/* set system state */
if
(
status
->
arming_state
==
ARMING_STATE_INIT
...
...
@@ -119,7 +119,7 @@ protected:
mavlink_system
.
type
,
MAV_AUTOPILOT_PX4
,
mavlink_base_mode
,
mavlink_
custom_mode
,
custom_mode
.
data
,
mavlink_state
);
}
...
...
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