Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Valentin Platzgummer
qgroundcontrol
Commits
9857c84e
Commit
9857c84e
authored
8 years ago
by
Don Gagne
Browse files
Options
Downloads
Patches
Plain Diff
Adjust version query semantics
parent
77656b0a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Vehicle/MultiVehicleManager.cc
+3
-0
3 additions, 0 deletions
src/Vehicle/MultiVehicleManager.cc
src/Vehicle/Vehicle.cc
+12
-1
12 additions, 1 deletion
src/Vehicle/Vehicle.cc
with
15 additions
and
1 deletion
src/Vehicle/MultiVehicleManager.cc
+
3
−
0
View file @
9857c84e
...
@@ -103,6 +103,9 @@ void MultiVehicleManager::_vehicleHeartbeatInfo(LinkInterface* link, int vehicle
...
@@ -103,6 +103,9 @@ void MultiVehicleManager::_vehicleHeartbeatInfo(LinkInterface* link, int vehicle
_vehicles
.
append
(
vehicle
);
_vehicles
.
append
(
vehicle
);
// Send QGC heartbeat ASAP, this allows PX4 to start accepting commands
_sendGCSHeartbeat
();
emit
vehicleAdded
(
vehicle
);
emit
vehicleAdded
(
vehicle
);
setActiveVehicle
(
vehicle
);
setActiveVehicle
(
vehicle
);
...
...
This diff is collapsed.
Click to expand it.
src/Vehicle/Vehicle.cc
+
12
−
1
View file @
9857c84e
...
@@ -198,7 +198,18 @@ Vehicle::Vehicle(LinkInterface* link,
...
@@ -198,7 +198,18 @@ Vehicle::Vehicle(LinkInterface* link,
connect
(
_parameterLoader
,
&
ParameterLoader
::
parameterListProgress
,
_autopilotPlugin
,
&
AutoPilotPlugin
::
parameterListProgress
);
connect
(
_parameterLoader
,
&
ParameterLoader
::
parameterListProgress
,
_autopilotPlugin
,
&
AutoPilotPlugin
::
parameterListProgress
);
// Ask the vehicle for firmware version info. This must be MAV_COMP_ID_ALL since we don't know default component id yet.
// Ask the vehicle for firmware version info. This must be MAV_COMP_ID_ALL since we don't know default component id yet.
doCommandLong
(
MAV_COMP_ID_ALL
,
MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
,
1
/* request firmware version */
);
mavlink_message_t
versionMsg
;
mavlink_command_long_t
versionCmd
;
versionCmd
.
command
=
MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
;
versionCmd
.
confirmation
=
0
;
versionCmd
.
param1
=
1
;
// Request firmware version
versionCmd
.
param2
=
versionCmd
.
param3
=
versionCmd
.
param4
=
versionCmd
.
param5
=
versionCmd
.
param6
=
versionCmd
.
param7
=
0
;
versionCmd
.
target_system
=
id
();
versionCmd
.
target_component
=
MAV_COMP_ID_ALL
;
mavlink_msg_command_long_encode
(
_mavlink
->
getSystemId
(),
_mavlink
->
getComponentId
(),
&
versionMsg
,
&
versionCmd
);
sendMessageMultiple
(
versionMsg
);
_firmwarePlugin
->
initializeVehicle
(
this
);
_firmwarePlugin
->
initializeVehicle
(
this
);
...
...
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