Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
17ef8c61
Commit
17ef8c61
authored
Jun 11, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add WiFi calibration warning
parent
b19d393b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
APMSensorsComponent.qml
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+8
-0
APMSensorsComponentController.cc
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
+5
-0
APMSensorsComponentController.h
src/AutoPilotPlugins/APM/APMSensorsComponentController.h
+1
-0
No files found.
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
17ef8c61
...
...
@@ -169,6 +169,14 @@ QGCView {
}
}
Component
.
onCompleted
:
{
var
usingUDP
=
controller
.
usingUDPLink
()
if
(
usingUDP
)
{
console
.
log
(
"
onUsingUDPLink
"
)
showMessage
(
"
Sensor Calibration
"
,
"
Performing sensor calibration over a WiFi connection is known to be unreliable. You should disconnect and perform calibration using a direct USB connection instead.
"
,
StandardButton
.
Ok
)
}
}
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
panel
.
enabled
}
Component
{
...
...
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
View file @
17ef8c61
...
...
@@ -464,3 +464,8 @@ bool APMSensorsComponentController::accelSetupNeeded(void) const
{
return
_sensorsComponent
->
accelSetupNeeded
();
}
bool
APMSensorsComponentController
::
usingUDPLink
(
void
)
{
return
_vehicle
->
priorityLink
()
->
getLinkConfiguration
()
->
type
()
==
LinkConfiguration
::
TypeUdp
;
}
src/AutoPilotPlugins/APM/APMSensorsComponentController.h
View file @
17ef8c61
...
...
@@ -77,6 +77,7 @@ public:
Q_INVOKABLE
void
calibrateAccel
(
void
);
Q_INVOKABLE
void
cancelCalibration
(
void
);
Q_INVOKABLE
void
nextClicked
(
void
);
Q_INVOKABLE
bool
usingUDPLink
(
void
);
bool
compassSetupNeeded
(
void
)
const
;
bool
accelSetupNeeded
(
void
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment