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
989a0d7b
Commit
989a0d7b
authored
Mar 16, 2017
by
Gus Grubba
Committed by
GitHub
Mar 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4788 from dogmaphobic/removeExperiment
Removing camera control experiment.
parents
6eab0315
873cd312
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
42 deletions
+0
-42
UAS.cc
src/uas/UAS.cc
+0
-34
UAS.h
src/uas/UAS.h
+0
-4
UASInterface.h
src/uas/UASInterface.h
+0
-4
No files found.
src/uas/UAS.cc
View file @
989a0d7b
...
...
@@ -1222,40 +1222,6 @@ void UAS::pairRX(int rxType, int rxSubType)
}
}
/**
* Order the robot to take a picture (Testing -- Incomplete API)
*/
void
UAS
::
takePhoto
()
{
if
(
_vehicle
)
{
_vehicle
->
sendMavCommand
(
_vehicle
->
defaultComponentId
(),
// target component
MAV_CMD_IMAGE_START_CAPTURE
,
// command id
true
,
// showError
0
,
// Duration between two consecutive pictures (in seconds)
1
,
// Number of images to capture total - 0 for unlimited capture
0
,
// Resolution in megapixels (0.3 for 640x480, 1.3 for 1280x720, etc), set to 0 if param 4/5 are used
1920
,
// Resolution horizontal in pixels
1080
);
// Resolution horizontal in pixels
}
}
/**
* Order the robot to toggle video recording (Testing -- Incomplete API)
*/
void
UAS
::
toggleVideo
()
{
if
(
_vehicle
)
{
_vehicle
->
sendMavCommand
(
_vehicle
->
defaultComponentId
(),
// target component
MAV_CMD_VIDEO_START_CAPTURE
,
// command id
true
,
// showError
0
,
// Camera ID (0 for all cameras), 1 for first, 2 for second, etc.
60
,
// Frames per second
0
,
// Resolution in megapixels (0.3 for 640x480, 1.3 for 1280x720, etc), set to 0 if param 4/5 are used
1920
,
// Resolution horizontal in pixels
1080
);
// Resolution horizontal in pixels
}
}
/**
* If enabled, connect the flight gear link.
*/
...
...
src/uas/UAS.h
View file @
989a0d7b
...
...
@@ -262,10 +262,6 @@ public:
public
slots
:
/** @brief Order the robot to pair its receiver **/
void
pairRX
(
int
rxType
,
int
rxSubType
);
/** @brief Order the robot to take a picture **/
void
takePhoto
();
/** @brief Order the robot to toggle video recording **/
void
toggleVideo
();
/** @brief Enable / disable HIL */
#ifndef __mobile__
...
...
src/uas/UASInterface.h
View file @
989a0d7b
...
...
@@ -138,10 +138,6 @@ public:
public
slots
:
/** @brief Order the robot to pair its receiver **/
virtual
void
pairRX
(
int
rxType
,
int
rxSubType
)
=
0
;
/** @brief Order the robot to take a picture **/
virtual
void
takePhoto
()
{}
/** @brief Order the robot to toggle video recording **/
virtual
void
toggleVideo
()
{}
/** @brief Send the full HIL state to the MAV */
#ifndef __mobile__
...
...
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