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
1d2d8c90
Commit
1d2d8c90
authored
10 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Rover: make preflight calibration follow plane conventions
parent
c33f5437
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
APMrover2/GCS_Mavlink.pde
+8
-6
8 additions, 6 deletions
APMrover2/GCS_Mavlink.pde
with
8 additions
and
6 deletions
APMrover2/GCS_Mavlink.pde
+
8
−
6
View file @
1d2d8c90
...
@@ -829,15 +829,17 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
...
@@ -829,15 +829,17 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
break
;
break
;
case
MAV_CMD_PREFLIGHT_CALIBRATION
:
case
MAV_CMD_PREFLIGHT_CALIBRATION
:
if
(
packet
.
param1
==
1
||
if
(
(
packet
.
param1
==
1
||
packet
.
param2
==
1
||
packet
.
param2
==
1
)
&&
packet
.
param3
==
1
)
{
packet
.
param3
==
0
)
{
startup_INS_ground
(
true
);
startup_INS_ground
(
true
);
}
result
=
MAV_RESULT_ACCEPTED
;
if
(
packet
.
param4
==
1
)
{
}
else
if
(
packet
.
param4
==
1
)
{
trim_radio
();
trim_radio
();
result
=
MAV_RESULT_ACCEPTED
;
}
else
{
send_text_P
(
SEVERITY_LOW
,
PSTR
(
"Unsupported preflight calibration"
));
}
}
result
=
MAV_RESULT_ACCEPTED
;
break
;
break
;
case
MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS
:
case
MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS
:
...
...
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