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
a5597700
Commit
a5597700
authored
Oct 24, 2015
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2098 from DonLakeFlyer/MissionLoadDelay
Wait until parameter load complete for Mission Load
parents
4e0a8403
ef4ff0d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
MissionManager.cc
src/MissionManager/MissionManager.cc
+0
-2
Vehicle.cc
src/Vehicle/Vehicle.cc
+11
-1
Vehicle.h
src/Vehicle/Vehicle.h
+2
-1
No files found.
src/MissionManager/MissionManager.cc
View file @
a5597700
...
...
@@ -45,8 +45,6 @@ MissionManager::MissionManager(Vehicle* vehicle)
_ackTimeoutTimer
->
setInterval
(
_ackTimeoutMilliseconds
);
connect
(
_ackTimeoutTimer
,
&
QTimer
::
timeout
,
this
,
&
MissionManager
::
_ackTimeout
);
requestMissionItems
();
}
MissionManager
::~
MissionManager
()
...
...
src/Vehicle/Vehicle.cc
View file @
a5597700
...
...
@@ -87,6 +87,7 @@ Vehicle::Vehicle(LinkInterface* link, int vehicleId, MAV_AUTOPILOT firmwareType,
,
_satelliteLock
(
0
)
,
_updateCount
(
0
)
,
_missionManager
(
NULL
)
,
_missionManagerInitialRequestComplete
(
false
)
,
_armed
(
false
)
,
_base_mode
(
0
)
,
_custom_mode
(
0
)
...
...
@@ -110,7 +111,8 @@ Vehicle::Vehicle(LinkInterface* link, int vehicleId, MAV_AUTOPILOT firmwareType,
_firmwarePlugin
=
FirmwarePluginManager
::
instance
()
->
firmwarePluginForAutopilot
(
_firmwareType
,
_vehicleType
);
_autopilotPlugin
=
AutoPilotPluginManager
::
instance
()
->
newAutopilotPluginForVehicle
(
this
);
connect
(
_autopilotPlugin
,
&
AutoPilotPlugin
::
missingParametersChanged
,
this
,
&
Vehicle
::
missingParametersChanged
);
connect
(
_autopilotPlugin
,
&
AutoPilotPlugin
::
parametersReadyChanged
,
this
,
&
Vehicle
::
_parametersReady
);
connect
(
_autopilotPlugin
,
&
AutoPilotPlugin
::
missingParametersChanged
,
this
,
&
Vehicle
::
missingParametersChanged
);
// Refresh timer
connect
(
_refreshTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
_checkUpdate
()));
...
...
@@ -1101,3 +1103,11 @@ void Vehicle::_mapTrajectoryStop()
{
_mapTrajectoryTimer
.
stop
();
}
void
Vehicle
::
_parametersReady
(
bool
parametersReady
)
{
if
(
parametersReady
&&
!
_missionManagerInitialRequestComplete
)
{
_missionManagerInitialRequestComplete
=
true
;
_missionManager
->
requestMissionItems
();
}
}
src/Vehicle/Vehicle.h
View file @
a5597700
...
...
@@ -304,6 +304,7 @@ private slots:
void
_sendMessage
(
mavlink_message_t
message
);
void
_sendMessageMultipleNext
(
void
);
void
_addNewMapTrajectoryPoint
(
void
);
void
_parametersReady
(
bool
parametersReady
);
void
_handleTextMessage
(
int
newCount
);
/** @brief Attitude from main autopilot / system state */
...
...
@@ -409,7 +410,7 @@ private:
int
_updateCount
;
MissionManager
*
_missionManager
;
QmlObjectListModel
_missionItems
;
bool
_missionManagerInitialRequestComplete
;
bool
_armed
;
///< true: vehicle is armed
uint8_t
_base_mode
;
///< base_mode from HEARTBEAT
...
...
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