Skip to content
Snippets Groups Projects
Commit fe60cf58 authored by Arthur Coolen's avatar Arthur Coolen
Browse files

Bug1164:

Extra pictures for Core and Nederlans lofar 20 and changed armFromStation (that actually gave the RING  to ringFromStation, and added a new getArmFromStation.
parent fc58a848
No related branches found
No related tags found
No related merge requests found
...@@ -564,6 +564,9 @@ MAC/Navigator2/panels/objects/navigator_viewSelection.pnl -text ...@@ -564,6 +564,9 @@ MAC/Navigator2/panels/objects/navigator_viewSelection.pnl -text
MAC/Navigator2/pictures/16_empty.gif -text svneol=unset#image/gif MAC/Navigator2/pictures/16_empty.gif -text svneol=unset#image/gif
MAC/Navigator2/pictures/16_hand_right.gif -text svneol=unset#image/gif MAC/Navigator2/pictures/16_hand_right.gif -text svneol=unset#image/gif
MAC/Navigator2/pictures/CS1_core.jpg -text svneol=unset#image/jpeg MAC/Navigator2/pictures/CS1_core.jpg -text svneol=unset#image/jpeg
MAC/Navigator2/pictures/LOFAR20_Core.jpg -text svneol=unset#image/jpeg
MAC/Navigator2/pictures/LOFAR20_CoreInRemote.jpg -text svneol=unset#image/jpeg
MAC/Navigator2/pictures/LOFAR20_Remote.jpg -text svneol=unset#image/jpeg
MAC/Navigator2/pictures/LOFAR_main.bmp -text svneol=unset#image/bmp MAC/Navigator2/pictures/LOFAR_main.bmp -text svneol=unset#image/bmp
MAC/Navigator2/pictures/compass.gif -text svneol=unset#image/gif MAC/Navigator2/pictures/compass.gif -text svneol=unset#image/gif
MAC/Navigator2/pictures/down2x_en.gif -text svneol=unset#image/gif MAC/Navigator2/pictures/down2x_en.gif -text svneol=unset#image/gif
......
MAC/Navigator2/pictures/LOFAR20_Core.jpg

110 KiB

MAC/Navigator2/pictures/LOFAR20_CoreInRemote.jpg

138 KiB

MAC/Navigator2/pictures/LOFAR20_Remote.jpg

138 KiB

...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
// navFunct_queryConnectObservations : Queryconnect to keep track of all observations // navFunct_queryConnectObservations : Queryconnect to keep track of all observations
// navFunct_updateObservations : Callback for the above query // navFunct_updateObservations : Callback for the above query
// navFunct_getArmFromStation : Returns the armposition code from a stationName // navFunct_getArmFromStation : Returns the armposition code from a stationName
// navFunct_getArmFromStation : Returns the ringName from a stationName
// navFunct_receiver2Cabinet : Returns the CabinetNr for a RecieverNr // navFunct_receiver2Cabinet : Returns the CabinetNr for a RecieverNr
// navFunct_receiver2Subrack : Returns the SubrackNr for a RecieverNr // navFunct_receiver2Subrack : Returns the SubrackNr for a RecieverNr
// navFunct_receiver2RSP : Returns the RSPNr for a RecieverNr // navFunct_receiver2RSP : Returns the RSPNr for a RecieverNr
...@@ -208,29 +209,51 @@ void navFunct_updateObservations(string dp1, dyn_string active, ...@@ -208,29 +209,51 @@ void navFunct_updateObservations(string dp1, dyn_string active,
} }
//******************************************* //*******************************************
// Name: Function navFunct_getArmFromStation // Name: Function navFunct_getRingFromStation
// ******************************************* // *******************************************
// //
// Description: // Description:
// Will return the armName based upon the stationName. // Will return the ringName based upon the stationName.
// for now (CS1 fase) it will return Core, later something smart has to be // for now (CS1-20 fase) it will return Core, later something smart has to be
// done to give the other ringnames correctly. // done to give the other ringnames correctly.
// It is needed to get the correct datapoints in constructions like: // It is needed to get the correct datapoints in constructions like:
// LOFAR_PermSW_Core_CS010.state when you get a CS010:LOFAR_PermSW.state // LOFAR_PermSW_Core_CS010.state when you get a CS010:LOFAR_PermSW.state
// change. // change.
// //
// Returns: // Returns:
// the name of the ring
// *******************************************
string navFunct_getRingFromStation(string stationName) {
string ringName="";
if (substr(stationName,0,2) == "CS") {
ringName="Core";
} else if (substr(stationName,0,2) == "RS") {
ringName="Remote";
} else {
ringName="Europe";
}
return ringName;
}
//*******************************************
// Name: Function navFunct_getArmFromStation
// *******************************************
//
// Description:
// Will return the armName based upon the stationName.
//
// Returns:
// the name of the arm // the name of the arm
// ******************************************* // *******************************************
string navFunct_getArmFromStation(string stationName) { string navFunct_getArmFromStation(string stationName) {
string armName=""; int armName="";
if (substr(stationName,0,2) == "CS") { if (substr(stationName,0,2) == "RS") {
armName="Core"; armName=substr(stationName,2,1);
} }
return armName; return armName;
} }
// ******************************************* // *******************************************
// Name : showMapping // Name : showMapping
// ******************************************* // *******************************************
...@@ -554,7 +577,7 @@ string navFunct_getDPFromTypePath(dyn_string typeList,int choice) { ...@@ -554,7 +577,7 @@ string navFunct_getDPFromTypePath(dyn_string typeList,int choice) {
if (choice > 1) { if (choice > 1) {
newDatapoint += "_"+typeList[choice]; // add ObsSW, PermSW or PIC newDatapoint += "_"+typeList[choice]; // add ObsSW, PermSW or PIC
if (strpos(typeList[choice],"Ring") >= 0) { if (strpos(typeList[choice],"Ring") >= 0) {
newDatapoint += "_" + getArmFromStation(systemName); newDatapoint += "_" + navFunctgetRingFromStation(systemName);
} }
} }
} }
...@@ -998,7 +1021,16 @@ navFunct_fillHardwareTree() { ...@@ -998,7 +1021,16 @@ navFunct_fillHardwareTree() {
// add Stations // add Stations
if (dynlen(g_stationList) > 1 ) { if (dynlen(g_stationList) > 1 ) {
for (int i = 1; i <= dynlen(g_stationList); i++) { for (int i = 1; i <= dynlen(g_stationList); i++) {
dp = g_stationList[i]+":LOFAR"; // for ease of selection we use stationlike objects on the main google hardware panels, such
// as CEP and Core. Since those are obviously no stations (== databases) we need to set another point to
// jump to when doubleclicked
if (g_stationList[i] == "CEP") {
dp = MainDBName+"LOFAR_CEP";
} else if (g_stationList[i] == "Core") {
dp = MainDBName+"LOFAR_PIC_Core";
} else {
dp = g_stationList[i]+":LOFAR";
}
dynAppend(result,connectTo+","+g_stationList[i]+","+dp); dynAppend(result,connectTo+","+g_stationList[i]+","+dp);
} }
lvl="Station"; lvl="Station";
......
...@@ -179,8 +179,8 @@ void stationStateTriggered(string ident, dyn_dyn_anytype tab) { ...@@ -179,8 +179,8 @@ void stationStateTriggered(string ident, dyn_dyn_anytype tab) {
// skip the point // skip the point
element = substr(dp,strlen(datapoint)+1,((strlen(dp))-(strlen(datapoint)))); element = substr(dp,strlen(datapoint)+1,((strlen(dp))-(strlen(datapoint))));
// get the ArmName // get the RingName
armName=navFunct_getArmFromStation(station); armName=navFunct_getRingFromStation(station);
if (bDebug) DebugN("monitorStateChanges.ctl:stationStateTriggered|station : ",station, " DP: " ,datapoint," element: ",element); if (bDebug) DebugN("monitorStateChanges.ctl:stationStateTriggered|station : ",station, " DP: " ,datapoint," element: ",element);
......
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