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
94ab6fc9
Commit
94ab6fc9
authored
Sep 22, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish up follow me support
parent
d3b1e88d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
2 deletions
+13
-2
APMFirmwarePlugin.cc
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
+1
-1
ArduCopterFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc
+5
-1
ArduCopterFirmwarePlugin.h
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.h
+1
-0
ArduRoverFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc
+5
-0
ArduRoverFirmwarePlugin.h
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h
+1
-0
No files found.
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
View file @
94ab6fc9
...
...
@@ -1088,7 +1088,7 @@ void APMFirmwarePlugin::_handleRCChannelsRaw(Vehicle* vehicle, mavlink_message_t
void
APMFirmwarePlugin
::
_sendGCSMotionReport
(
Vehicle
*
vehicle
,
FollowMe
::
GCSMotionReport
&
motionReport
,
uint8_t
estimationCapabilities
)
{
if
(
vehicle
->
homePosition
().
isValid
())
{
if
(
!
vehicle
->
homePosition
().
isValid
())
{
static
bool
sentOnce
=
false
;
if
(
!
sentOnce
)
{
sentOnce
=
true
;
...
...
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc
View file @
94ab6fc9
...
...
@@ -43,7 +43,7 @@ APMCopterMode::APMCopterMode(uint32_t mode, bool settable) :
{
GUIDED_NOGPS
,
"Guided No GPS"
},
{
SMART_RTL
,
"Smart RTL"
},
{
FLOWHOLD
,
"Flow Hold"
},
{
FOLLOW
,
"Follow
Vehicle
"
},
{
FOLLOW
,
"Follow"
},
{
ZIGZAG
,
"ZigZag"
},
});
}
...
...
@@ -136,3 +136,7 @@ bool ArduCopterFirmwarePlugin::vehicleYawsToNextWaypointInMission(const Vehicle*
return
true
;
}
void
ArduCopterFirmwarePlugin
::
sendGCSMotionReport
(
Vehicle
*
vehicle
,
FollowMe
::
GCSMotionReport
&
motionReport
,
uint8_t
estimatationCapabilities
)
{
_sendGCSMotionReport
(
vehicle
,
motionReport
,
estimatationCapabilities
);
}
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.h
View file @
94ab6fc9
...
...
@@ -71,6 +71,7 @@ public:
bool
vehicleYawsToNextWaypointInMission
(
const
Vehicle
*
vehicle
)
const
override
;
QString
autoDisarmParameter
(
Vehicle
*
vehicle
)
override
{
Q_UNUSED
(
vehicle
);
return
QStringLiteral
(
"DISARM_DELAY"
);
}
bool
supportsSmartRTL
(
void
)
const
override
{
return
true
;
}
void
sendGCSMotionReport
(
Vehicle
*
vehicle
,
FollowMe
::
GCSMotionReport
&
motionReport
,
uint8_t
estimatationCapabilities
)
override
;
private:
static
bool
_remapParamNameIntialized
;
...
...
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc
View file @
94ab6fc9
...
...
@@ -77,3 +77,8 @@ bool ArduRoverFirmwarePlugin::supportsNegativeThrust(Vehicle* /*vehicle*/)
{
return
true
;
}
void
ArduRoverFirmwarePlugin
::
sendGCSMotionReport
(
Vehicle
*
vehicle
,
FollowMe
::
GCSMotionReport
&
motionReport
,
uint8_t
estimatationCapabilities
)
{
_sendGCSMotionReport
(
vehicle
,
motionReport
,
estimatationCapabilities
);
}
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h
View file @
94ab6fc9
...
...
@@ -53,6 +53,7 @@ public:
bool
supportsNegativeThrust
(
Vehicle
*
)
final
;
bool
supportsSmartRTL
(
void
)
const
override
{
return
true
;
}
QString
offlineEditingParamFile
(
Vehicle
*
vehicle
)
override
{
Q_UNUSED
(
vehicle
);
return
QStringLiteral
(
":/FirmwarePlugin/APM/Rover.OfflineEditing.params"
);
}
void
sendGCSMotionReport
(
Vehicle
*
vehicle
,
FollowMe
::
GCSMotionReport
&
motionReport
,
uint8_t
estimatationCapabilities
)
override
;
private:
static
bool
_remapParamNameIntialized
;
...
...
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