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
e4434dc9
Commit
e4434dc9
authored
May 06, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rebase to master, fix merge problems
parent
bf9553bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
FileManager.cc
src/uas/FileManager.cc
+3
-3
FileManager.h
src/uas/FileManager.h
+5
-3
No files found.
src/uas/FileManager.cc
View file @
e4434dc9
...
...
@@ -379,7 +379,7 @@ void FileManager::receiveMessage(LinkInterface* link, mavlink_message_t message)
// This is not an error, just the end of the download loop
_closeDownloadSession
(
true
/* success */
);
return
;
}
else
if
(
previousOperation
==
kCOCreat
e
)
{
}
else
if
(
request
->
hdr
.
req_opcode
==
kCmdCreateFil
e
)
{
// End a failed create file operation
_sendTerminateCommand
();
_emitErrorMessage
(
tr
(
"Nak received creating file, error: %1"
).
arg
(
errorString
(
request
->
data
[
0
])));
...
...
@@ -614,14 +614,14 @@ void FileManager::_ackTimeout(void)
case
kCOCreate
:
_currentOperation
=
kCOAck
;
_writeFileAccumulator
.
clear
();
_emitErrorMessage
(
tr
(
"Timeout waiting for ack: Sending
Cre
ate command"
));
_emitErrorMessage
(
tr
(
"Timeout waiting for ack: Sending
Termin
ate command"
));
_sendTerminateCommand
();
break
;
case
kCOWrite
:
_currentOperation
=
kCOAck
;
_writeFileAccumulator
.
clear
();
_emitErrorMessage
(
tr
(
"Timeout waiting for ack: Sending
Wri
te command"
));
_emitErrorMessage
(
tr
(
"Timeout waiting for ack: Sending
Termina
te command"
));
_sendTerminateCommand
();
break
;
...
...
src/uas/FileManager.h
View file @
e4434dc9
...
...
@@ -61,6 +61,10 @@ public:
/// @param dirPath Fully qualified path to list
void
listDirectory
(
const
QString
&
dirPath
);
/// Upload the specified file to the specified location
void
uploadPath
(
const
QString
&
toPath
,
const
QFileInfo
&
uploadFile
);
signals:
/// @brief Signalled whenever an error occurs during the listDirectory or downloadPath methods.
void
errorMessage
(
const
QString
&
msg
);
...
...
@@ -97,9 +101,6 @@ signals:
public
slots
:
void
receiveMessage
(
LinkInterface
*
link
,
mavlink_message_t
message
);
void
listDirectory
(
const
QString
&
dirPath
);
void
downloadPath
(
const
QString
&
from
,
const
QDir
&
downloadDir
);
void
uploadPath
(
const
QString
&
toPath
,
const
QFileInfo
&
uploadFile
);
private
slots
:
void
_ackTimeout
(
void
);
...
...
@@ -188,6 +189,7 @@ private:
kCORead
,
// waiting for Read response
kCOBurst
,
// waiting for Burst response
kCOWrite
,
// waiting for Write response
kCOCreate
,
// waiting for Create response
};
bool
_sendOpcodeOnlyCmd
(
uint8_t
opcode
,
OperationState
newOpState
);
...
...
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