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
4d396823
Commit
4d396823
authored
Sep 30, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
ef712aff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
APMFirmwarePlugin.cc
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
+6
-3
FollowMe.cc
src/FollowMe/FollowMe.cc
+1
-0
FollowMe.h
src/FollowMe/FollowMe.h
+2
-1
No files found.
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
View file @
4d396823
...
...
@@ -14,6 +14,7 @@
#include "APMFlightModesComponentController.h"
#include "APMAirframeComponentController.h"
#include "APMSensorsComponentController.h"
#include "APMFollowComponentController.h"
#include "MissionManager.h"
#include "ParameterManager.h"
#include "QGCFileDownload.h"
...
...
@@ -158,6 +159,7 @@ APMFirmwarePlugin::APMFirmwarePlugin(void)
qmlRegisterType
<
APMFlightModesComponentController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"APMFlightModesComponentController"
);
qmlRegisterType
<
APMAirframeComponentController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"APMAirframeComponentController"
);
qmlRegisterType
<
APMSensorsComponentController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"APMSensorsComponentController"
);
qmlRegisterType
<
APMFollowComponentController
>
(
"QGroundControl.Controllers"
,
1
,
0
,
"APMFollowComponentController"
);
}
AutoPilotPlugin
*
APMFirmwarePlugin
::
autopilotPlugin
(
Vehicle
*
vehicle
)
...
...
@@ -396,7 +398,8 @@ bool APMFirmwarePlugin::_handleIncomingStatusText(Vehicle* vehicle, mavlink_mess
}
if
(
supportedMajorNumber
!=
-
1
)
{
if
(
firmwareVersion
.
majorNumber
()
<
supportedMajorNumber
||
firmwareVersion
.
minorNumber
()
<
supportedMinorNumber
)
{
if
(
firmwareVersion
.
majorNumber
()
<
supportedMajorNumber
||
(
firmwareVersion
.
majorNumber
()
==
supportedMajorNumber
&&
firmwareVersion
.
minorNumber
()
<
supportedMinorNumber
))
{
qgcApp
()
->
showMessage
(
tr
(
"QGroundControl fully supports Version %1.%2 and above. You are using a version prior to that. This combination is untested, you may run into unpredictable results."
).
arg
(
supportedMajorNumber
).
arg
(
supportedMinorNumber
));
}
}
...
...
@@ -1101,7 +1104,7 @@ void APMFirmwarePlugin::_sendGCSMotionReport(Vehicle* vehicle, FollowMe::GCSMoti
return
;
}
if
(
!
(
estimationCapabilities
&
(
FollowMe
::
POS
|
FollowMe
::
VEL
)))
{
if
(
!
(
estimationCapabilities
&
(
FollowMe
::
POS
|
FollowMe
::
VEL
|
FollowMe
::
HEADING
)))
{
static
bool
sentOnce
=
false
;
if
(
!
sentOnce
)
{
sentOnce
=
true
;
...
...
@@ -1124,7 +1127,7 @@ void APMFirmwarePlugin::_sendGCSMotionReport(Vehicle* vehicle, FollowMe::GCSMoti
globalPositionInt
.
vx
=
static_cast
<
int16_t
>
(
motionReport
.
vxMetersPerSec
*
100
);
// cm/sec
globalPositionInt
.
vy
=
static_cast
<
int16_t
>
(
motionReport
.
vyMetersPerSec
*
100
);
// cm/sec
globalPositionInt
.
vy
=
static_cast
<
int16_t
>
(
motionReport
.
vzMetersPerSec
*
100
);
// cm/sec
globalPositionInt
.
hdg
=
UINT16_MAX
;
globalPositionInt
.
hdg
=
static_cast
<
uint16_t
>
(
motionReport
.
headingDegrees
*
100.0
);
// centi-degrees
mavlink_message_t
message
;
mavlink_msg_global_position_int_encode_chan
(
static_cast
<
uint8_t
>
(
mavlinkProtocol
->
getSystemId
()),
...
...
src/FollowMe/FollowMe.cc
View file @
4d396823
...
...
@@ -93,6 +93,7 @@ void FollowMe::_sendGCSMotionReport()
estimatation_capabilities
|=
(
1
<<
POS
);
if
(
geoPositionInfo
.
hasAttribute
(
QGeoPositionInfo
::
Direction
)
==
true
)
{
estimatation_capabilities
|=
(
1
<<
HEADING
);
motionReport
.
headingDegrees
=
geoPositionInfo
.
attribute
(
QGeoPositionInfo
::
Direction
);
}
...
...
src/FollowMe/FollowMe.h
View file @
4d396823
...
...
@@ -47,7 +47,8 @@ public:
POS
=
0
,
VEL
=
1
,
ACCEL
=
2
,
ATT_RATES
=
3
ATT_RATES
=
3
,
HEADING
=
4
};
void
setToolbox
(
QGCToolbox
*
toolbox
)
override
;
...
...
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