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
1e90dab4
Commit
1e90dab4
authored
Jun 18, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on watchdog control
parent
a705367c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
WatchdogControl.cc
src/ui/watchdog/WatchdogControl.cc
+4
-1
WatchdogProcessView.h
src/ui/watchdog/WatchdogProcessView.h
+2
-1
No files found.
src/ui/watchdog/WatchdogControl.cc
View file @
1e90dab4
...
...
@@ -58,7 +58,7 @@ void WatchdogControl::updateWatchdog(int systemId, int watchdogId, unsigned int
// start the timeout timer
//watchdog.timeoutTimer_.reset();
//
qDebug() << "WATCHDOG RECEIVED";
qDebug
()
<<
"WATCHDOG RECEIVED"
;
//qDebug() << "<-- received mavlink_watchdog_heartbeat_t " << msg->sysid << " / " << payload.watchdog_id << " / " << payload.process_count << std::endl;
}
...
...
@@ -73,6 +73,7 @@ void WatchdogControl::addProcess(int systemId, int watchdogId, int processId, QS
process
.
arguments_
=
arguments
.
toStdString
();
process
.
timeout_
=
timeout
;
qDebug
()
<<
"PROCESS RECEIVED"
;
qDebug
()
<<
"SYS"
<<
systemId
<<
"WD"
<<
watchdogId
<<
"PROCESS"
<<
processId
<<
name
<<
"ARG"
<<
arguments
<<
"TO"
<<
timeout
;
//qDebug() << "<-- received mavlink_watchdog_process_info_t " << msg->sysid << " / " << (const char*)payload.name << " / " << (const char*)payload.arguments << " / " << payload.timeout << std::endl;
}
...
...
@@ -90,6 +91,8 @@ void WatchdogControl::updateProcess(int systemId, int watchdogId, int processId,
process
.
pid_
=
pid
;
qDebug
()
<<
"PROCESS UPDATED"
;
qDebug
()
<<
"SYS"
<<
systemId
<<
"WD"
<<
watchdogId
<<
"PROCESS"
<<
processId
<<
"STATE"
<<
state
<<
"CRASH"
<<
crashes
<<
"PID"
<<
pid
;
//process.updateTimer_.reset();
//qDebug() << "<-- received mavlink_watchdog_process_status_t " << msg->sysid << " / " << payload.state << " / " << payload.muted << " / " << payload.crashes << " / " << payload.pid << std::endl;
}
...
...
src/ui/watchdog/WatchdogProcessView.h
View file @
1e90dab4
...
...
@@ -2,6 +2,7 @@
#define WATCHDOGPROCESSVIEW_H
#include <QtGui/QWidget>
#include <QMap>
namespace
Ui
{
class
WatchdogProcessView
;
...
...
@@ -10,7 +11,7 @@ namespace Ui {
class
WatchdogProcessView
:
public
QWidget
{
Q_OBJECT
public:
WatchdogProcessView
(
QWidget
*
parent
=
0
);
WatchdogProcessView
(
int
processid
,
QWidget
*
parent
=
0
);
~
WatchdogProcessView
();
protected:
...
...
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