Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
f400f39f
Commit
f400f39f
authored
10 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Rover: fixed build warnings
parent
8a77fef6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
APMrover2/GCS_Mavlink.pde
+12
-4
12 additions, 4 deletions
APMrover2/GCS_Mavlink.pde
APMrover2/commands_logic.pde
+1
-0
1 addition, 0 deletions
APMrover2/commands_logic.pde
APMrover2/setup.pde
+1
-3
1 addition, 3 deletions
APMrover2/setup.pde
with
14 additions
and
7 deletions
APMrover2/GCS_Mavlink.pde
+
12
−
4
View file @
f400f39f
...
@@ -530,14 +530,22 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
...
@@ -530,14 +530,22 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
// unused
// unused
break
;
break
;
case
MSG_RETRY_DEFERRED
:
case
MSG_TERRAIN
:
break
;
// just here to prevent a warning
case
MSG_BATTERY2
:
case
MSG_BATTERY2
:
CHECK_PAYLOAD_SIZE
(
BATTERY2
);
CHECK_PAYLOAD_SIZE
(
BATTERY2
);
gcs
[
chan
-
MAVLINK_COMM_0
].
send_battery2
(
battery
);
gcs
[
chan
-
MAVLINK_COMM_0
].
send_battery2
(
battery
);
break
;
break
;
case
MSG_CAMERA_FEEDBACK
:
#if CAMERA == ENABLED
CHECK_PAYLOAD_SIZE
(
CAMERA_FEEDBACK
);
camera
.
send_feedback
(
chan
,
gps
,
ahrs
,
current_loc
);
#endif
break
;
case
MSG_RETRY_DEFERRED
:
case
MSG_TERRAIN
:
case
MSG_OPTICAL_FLOW
:
break
;
// just here to prevent a warning
}
}
...
...
This diff is collapsed.
Click to expand it.
APMrover2/commands_logic.pde
+
1
−
0
View file @
f400f39f
...
@@ -308,6 +308,7 @@ static void do_take_picture()
...
@@ -308,6 +308,7 @@ static void do_take_picture()
{
{
#if CAMERA == ENABLED
#if CAMERA == ENABLED
camera
.
trigger_pic
();
camera
.
trigger_pic
();
gcs_send_message
(
MSG_CAMERA_FEEDBACK
);
if
(
should_log
(
MASK_LOG_CAMERA
))
{
if
(
should_log
(
MASK_LOG_CAMERA
))
{
DataFlash
.
Log_Write_Camera
(
ahrs
,
gps
,
current_loc
);
DataFlash
.
Log_Write_Camera
(
ahrs
,
gps
,
current_loc
);
}
}
...
...
This diff is collapsed.
Click to expand it.
APMrover2/setup.pde
+
1
−
3
View file @
f400f39f
...
@@ -341,9 +341,7 @@ setup_flightmodes(uint8_t argc, const Menu::arg *argv)
...
@@ -341,9 +341,7 @@ setup_flightmodes(uint8_t argc, const Menu::arg *argv)
mode
!=
AUTO
&&
mode
!=
AUTO
&&
mode
!=
RTL
)
mode
!=
RTL
)
{
{
if
(
mode
<
MANUAL
)
if
(
mode
>
RTL
)
mode
=
RTL
;
else
if
(
mode
>
RTL
)
mode
=
MANUAL
;
mode
=
MANUAL
;
else
else
mode
+=
radioInputSwitch
;
mode
+=
radioInputSwitch
;
...
...
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