From 1e90dab4f52d5e41af566b7de852ad86092c18f6 Mon Sep 17 00:00:00 2001 From: pixhawk Date: Fri, 18 Jun 2010 19:12:40 +0200 Subject: [PATCH] Working on watchdog control --- src/ui/watchdog/WatchdogControl.cc | 5 ++++- src/ui/watchdog/WatchdogProcessView.h | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/watchdog/WatchdogControl.cc b/src/ui/watchdog/WatchdogControl.cc index fd3350b68..1772e0aa1 100644 --- a/src/ui/watchdog/WatchdogControl.cc +++ b/src/ui/watchdog/WatchdogControl.cc @@ -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; } diff --git a/src/ui/watchdog/WatchdogProcessView.h b/src/ui/watchdog/WatchdogProcessView.h index 6d0bec3a4..fa014b32d 100644 --- a/src/ui/watchdog/WatchdogProcessView.h +++ b/src/ui/watchdog/WatchdogProcessView.h @@ -2,6 +2,7 @@ #define WATCHDOGPROCESSVIEW_H #include +#include 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: -- 2.22.0