eive-obsw/watchdog/main.cpp
2021-07-29 11:59:32 +02:00

21 lines
545 B
C++

#include "Watchdog.h"
#include <iostream>
/**
* @brief This watchdog application uses a FIFO to check whether the OBSW is still running.
* It checks whether the OBSW writes to the the FIFO regularly.
*/
int main() {
std::cout << "eive-watchdog: Starting OBSW watchdog.." << std::endl;
try {
WatchdogTask watchdogTask;
watchdogTask.performOperation();
}
catch(const std::runtime_error& e) {
std::cerr << "eive-watchdog: Run time exception " << e.what() << std::endl;
}
return 0;
}