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
cf87c62b
Commit
cf87c62b
authored
Jan 15, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2635 from DonLakeFlyer/APMAccelCal
Stop connection lost handling during accel cal
parents
5a29e267
786b472f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
APMSensorsComponentController.cc
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
+10
-0
APMSensorsComponentController.h
src/AutoPilotPlugins/APM/APMSensorsComponentController.h
+2
-1
No files found.
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
View file @
cf87c62b
...
...
@@ -77,6 +77,11 @@ APMSensorsComponentController::APMSensorsComponentController(void) :
connect
(
_sensorsComponent
,
&
VehicleComponent
::
setupCompleteChanged
,
this
,
&
APMSensorsComponentController
::
setupNeededChanged
);
}
APMSensorsComponentController
::~
APMSensorsComponentController
()
{
_vehicle
->
setConnectionLostEnabled
(
true
);
}
/// Appends the specified text to the status log area in the ui
void
APMSensorsComponentController
::
_appendStatusLog
(
const
QString
&
text
)
{
...
...
@@ -143,6 +148,10 @@ void APMSensorsComponentController::_resetInternalState(void)
void
APMSensorsComponentController
::
_stopCalibration
(
APMSensorsComponentController
::
StopCalibrationCode
code
)
{
if
(
_accelCalInProgress
)
{
_vehicle
->
setConnectionLostEnabled
(
true
);
}
disconnect
(
_uas
,
&
UASInterface
::
textMessageReceived
,
this
,
&
APMSensorsComponentController
::
_handleUASTextMessage
);
_compassButton
->
setEnabled
(
true
);
...
...
@@ -193,6 +202,7 @@ void APMSensorsComponentController::calibrateCompass(void)
void
APMSensorsComponentController
::
calibrateAccel
(
void
)
{
_vehicle
->
setConnectionLostEnabled
(
false
);
_startLogCalibration
();
_accelCalInProgress
=
true
;
_uas
->
startCalibration
(
UASInterface
::
StartCalibrationAccel
);
...
...
src/AutoPilotPlugins/APM/APMSensorsComponentController.h
View file @
cf87c62b
...
...
@@ -41,7 +41,8 @@ class APMSensorsComponentController : public FactPanelController
public:
APMSensorsComponentController
(
void
);
~
APMSensorsComponentController
();
Q_PROPERTY
(
bool
fixedWing
READ
fixedWing
CONSTANT
)
Q_PROPERTY
(
QQuickItem
*
statusLog
MEMBER
_statusLog
)
...
...
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