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
eac38bcf
Unverified
Commit
eac38bcf
authored
Dec 06, 2018
by
Don Gagne
Committed by
GitHub
Dec 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7058 from DonLakeFlyer/OfflineVehicle
Fix connections to offline vehicle
parents
5cbd1f08
e5a412db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
Vehicle.cc
src/Vehicle/Vehicle.cc
+8
-6
No files found.
src/Vehicle/Vehicle.cc
View file @
eac38bcf
...
...
@@ -85,6 +85,7 @@ const char* Vehicle::_clockFactGroupName = "clock";
const
char
*
Vehicle
::
_distanceSensorFactGroupName
=
"distanceSensor"
;
const
char
*
Vehicle
::
_estimatorStatusFactGroupName
=
"estimatorStatus"
;
// Standard connected vehicle
Vehicle
::
Vehicle
(
LinkInterface
*
link
,
int
vehicleId
,
int
defaultComponentId
,
...
...
@@ -407,6 +408,13 @@ Vehicle::Vehicle(MAV_AUTOPILOT firmwareType,
,
_distanceSensorFactGroup
(
this
)
{
_commonInit
();
// Offline editing vehicle tracks settings changes for offline editing settings
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingFirmwareType
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineFirmwareTypeSettingChanged
);
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingVehicleType
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineVehicleTypeSettingChanged
);
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingCruiseSpeed
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineCruiseSpeedSettingChanged
);
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingHoverSpeed
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineHoverSpeedSettingChanged
);
_firmwarePlugin
->
initializeVehicle
(
this
);
}
...
...
@@ -443,12 +451,6 @@ void Vehicle::_commonInit(void)
connect
(
_rallyPointManager
,
&
RallyPointManager
::
error
,
this
,
&
Vehicle
::
_rallyPointManagerError
);
connect
(
_rallyPointManager
,
&
RallyPointManager
::
loadComplete
,
this
,
&
Vehicle
::
_rallyPointLoadComplete
);
// Offline editing vehicle tracks settings changes for offline editing settings
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingFirmwareType
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineFirmwareTypeSettingChanged
);
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingVehicleType
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineVehicleTypeSettingChanged
);
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingCruiseSpeed
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineCruiseSpeedSettingChanged
);
connect
(
_settingsManager
->
appSettings
()
->
offlineEditingHoverSpeed
(),
&
Fact
::
rawValueChanged
,
this
,
&
Vehicle
::
_offlineHoverSpeedSettingChanged
);
// Flight modes can differ based on advanced mode
connect
(
_toolbox
->
corePlugin
(),
&
QGCCorePlugin
::
showAdvancedUIChanged
,
this
,
&
Vehicle
::
flightModesChanged
);
...
...
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