From bd3bb47522cd9b953db3975996c0b91e05e3c74b Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sat, 6 Dec 2014 20:55:31 -0800 Subject: [PATCH] UAS responsible for getting first time parameter list --- src/uas/QGCMAVLinkUASFactory.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uas/QGCMAVLinkUASFactory.cc b/src/uas/QGCMAVLinkUASFactory.cc index 190b7ce16..39df612c3 100644 --- a/src/uas/QGCMAVLinkUASFactory.cc +++ b/src/uas/QGCMAVLinkUASFactory.cc @@ -78,8 +78,11 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte // Make UAS aware that this link can be used to communicate with the actual robot uas->addLink(link); + // First thing we do with a new UAS is get the parameters + uas->requestParameters(); + // Now add UAS to "official" list, which makes the whole application aware of it UASManager::instance()->addUAS(uas); - + return uas; } -- 2.22.0