Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ardupilot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
SASC
ardupilot
Commits
6ccf3643
Commit
6ccf3643
authored
8 years ago
by
Peter Barker
Committed by
Tom Pittenger
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
AP_Frsky_Telem: actually set _ap.value flags based in is_flying
Closes #5017
parent
d9670741
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
libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp
+9
-0
9 additions, 0 deletions
libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp
libraries/AP_Frsky_Telem/AP_Frsky_Telem.h
+1
-1
1 addition, 1 deletion
libraries/AP_Frsky_Telem/AP_Frsky_Telem.h
with
10 additions
and
1 deletion
libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp
+
9
−
0
View file @
6ccf3643
...
@@ -907,3 +907,12 @@ void AP_Frsky_Telem::calc_gps_position(void)
...
@@ -907,3 +907,12 @@ void AP_Frsky_Telem::calc_gps_position(void)
_gps
.
speed_in_centimeter
=
0
;
_gps
.
speed_in_centimeter
=
0
;
}
}
}
}
void
AP_Frsky_Telem
::
set_is_flying
(
bool
is_flying
)
{
if
(
is_flying
)
{
_ap
.
value
|=
AP_ISFLYING_FLAG
;
}
else
{
_ap
.
value
&=
~
AP_ISFLYING_FLAG
;
}
}
This diff is collapsed.
Click to expand it.
libraries/AP_Frsky_Telem/AP_Frsky_Telem.h
+
1
−
1
View file @
6ccf3643
...
@@ -127,7 +127,7 @@ public:
...
@@ -127,7 +127,7 @@ public:
void
update_control_mode
(
uint8_t
mode
)
{
_ap
.
control_mode
=
mode
;
}
void
update_control_mode
(
uint8_t
mode
)
{
_ap
.
control_mode
=
mode
;
}
// update whether we're flying (used for Plane)
// update whether we're flying (used for Plane)
void
set_is_flying
(
bool
is_flying
)
{
is_flying
?
(
_ap
.
value
|
AP_ISFLYING_FLAG
)
:
(
_ap
.
value
&
(
~
AP_ISFLYING_FLAG
));
}
void
set_is_flying
(
bool
is_flying
)
;
// update error mask of sensors and subsystems. The mask uses the
// update error mask of sensors and subsystems. The mask uses the
// MAV_SYS_STATUS_* values from mavlink. If a bit is set then it
// MAV_SYS_STATUS_* values from mavlink. If a bit is set then it
...
...
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