Skip to content
Snippets Groups Projects
Commit 336d2666 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 1000

Updating OTB database (as a test).
parent 0c59a122
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@
#include <APL/APLCommon/StationInfo.h>
#include <APL/APLCommon/APLCommonExceptions.h>
#include <APL/APLCommon/Controller_Protocol.ph>
#include <OTDB/TreeStateConv.h>
#include <signal.h>
#include "MACSchedulerDefines.h"
......@@ -481,7 +482,7 @@ void MACScheduler::finish()
//
void MACScheduler::_doOTDBcheck()
{
// REO: test pvss appl
// update PVSS database
ptime currentTime = from_time_t(time(0));
itsPropertySet->setValue(string(PN_MS_OTDB_LAST_POLL),
GCFPVString(to_simple_string(currentTime)));
......@@ -543,6 +544,10 @@ void MACScheduler::_doOTDBcheck()
newObs.treeID = treeID;
_addActiveObservation(newObs);
LOG_DEBUG_STR("Observation " << cntlrName << " added to active Observations");
TreeStateConv tsc(itsOTDBconnection);
tm.setTreeState(treeID, tsc.get("queued"));
}
idx++;
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment