##// END OF EJS Templates
rmap source target set to 1 by default
leroy -
r22:797a76985124 default
parent child
Show More
@@ -1,6 +1,6
1 #############################################################################
1 #############################################################################
2 # Makefile for building: PAULs_LPPMON_PLUGINS
2 # Makefile for building: PAULs_LPPMON_PLUGINS
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Apr 25 14:28:34 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed May 22 07:43:41 2013
4 # Project: PAULs_LPPMON_PLUGINS.pro
4 # Project: PAULs_LPPMON_PLUGINS.pro
5 # Template: subdirs
5 # Template: subdirs
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by Qt Creator 2.4.1, 2013-05-21T07:15:43. -->
3 <!-- Written by Qt Creator 2.4.1, 2013-05-22T07:47:54. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -1,6 +1,6
1 #############################################################################
1 #############################################################################
2 # Makefile for building: librmapplugin.so.1.0.0
2 # Makefile for building: librmapplugin.so.1.0.0
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Apr 26 08:31:53 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed May 22 07:43:41 2013
4 # Project: rmapplugin.pro
4 # Project: rmapplugin.pro
5 # Template: lib
5 # Template: lib
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
@@ -39,6 +39,10
39 #define SID_SBM2_BP1_F1 30
39 #define SID_SBM2_BP1_F1 30
40 #define SID_SBM2_BP2_F1 33
40 #define SID_SBM2_BP2_F1 33
41
41
42 #define RMAP_DEFAULT_SOURCE_ADDRESS 1
42 //*****
43 // RMAP
44 #define DEFAULT_DESTINATION_KEY 2
45 #define DEFAULT_SOURCE 1
46 #define DEFAULT_TARGET 254
43
47
44 #endif // PARAMS_H
48 #endif // PARAMS_H
@@ -2,6 +2,7
2 #define RMAPOPERATIONS_H
2 #define RMAPOPERATIONS_H
3
3
4 #include "qhexspinbox.h"
4 #include "qhexspinbox.h"
5 #include <params.h>
5
6
6 #define READ_WRITE_MAX_COUNTS 4096 // in words
7 #define READ_WRITE_MAX_COUNTS 4096 // in words
7 #define RMAP_MAX_DATA_LENGTH 4*READ_WRITE_MAX_COUNTS // in bytes, shall be lower than the limit size of SPW packet of the GRESB bridge
8 #define RMAP_MAX_DATA_LENGTH 4*READ_WRITE_MAX_COUNTS // in bytes, shall be lower than the limit size of SPW packet of the GRESB bridge
@@ -10,10 +11,6
10 #define RMAP_DATA_CRC_LENGTH 1 // in bytes => ECSS
11 #define RMAP_DATA_CRC_LENGTH 1 // in bytes => ECSS
11 #define RMAP_MAX_PACKET_LENGTH RMAP_READ_REPLY_HEADER_LENGTH + RMAP_MAX_DATA_LENGTH + RMAP_DATA_CRC_LENGTH
12 #define RMAP_MAX_PACKET_LENGTH RMAP_READ_REPLY_HEADER_LENGTH + RMAP_MAX_DATA_LENGTH + RMAP_DATA_CRC_LENGTH
12
13
13 #define DEFAULT_DESTINATION_KEY 2
14 #define DEFAULT_SOURCE 0
15 #define DEFAULT_TARGET 254
16
17 static const unsigned char RMAP_CRCTable[] = {
14 static const unsigned char RMAP_CRCTable[] = {
18 0x00, 0x91, 0xe3, 0x72, 0x07, 0x96, 0xe4, 0x75,
15 0x00, 0x91, 0xe3, 0x72, 0x07, 0x96, 0xe4, 0x75,
19 0x0e, 0x9f, 0xed, 0x7c, 0x09, 0x98, 0xea, 0x7b,
16 0x0e, 0x9f, 0xed, 0x7c, 0x09, 0x98, 0xea, 0x7b,
@@ -79,7 +79,6 rmapPluginUI::rmapPluginUI(QWidget *pare
79 gresbVirtualLinkSpinBox->setRange(0, 4);
79 gresbVirtualLinkSpinBox->setRange(0, 4);
80 gresbVirtualLinkSpinBox->setValue(1);
80 gresbVirtualLinkSpinBox->setValue(1);
81 rmapSourceLogicalAddressSpinBox->setRange(0, 255);
81 rmapSourceLogicalAddressSpinBox->setRange(0, 255);
82 rmapSourceLogicalAddressSpinBox->setValue(RMAP_DEFAULT_SOURCE_ADDRESS);
83 rmapTargetLogicalAddressSpinBox->setRange(0, 255);
82 rmapTargetLogicalAddressSpinBox->setRange(0, 255);
84 spwLinkSpinBox->setRange(0, 2);
83 spwLinkSpinBox->setRange(0, 2);
85 spwLinkSpinBox->setValue(0);
84 spwLinkSpinBox->setValue(0);
@@ -104,6 +103,9 rmapPluginUI::rmapPluginUI(QWidget *pare
104 bridgeSelection_LAYOUT->addWidget(selectGRESB_BUTTON, 0, 0, 1, 1);
103 bridgeSelection_LAYOUT->addWidget(selectGRESB_BUTTON, 0, 0, 1, 1);
105 bridgeSelection_LAYOUT->addWidget(selectStarDundee_BUTTON, 0, 1, 1, 1);
104 bridgeSelection_LAYOUT->addWidget(selectStarDundee_BUTTON, 0, 1, 1, 1);
106
105
106 bridgeSelection_LAYOUT->setRowStretch(1, 1);
107 bridgeSelection_LAYOUT->setColumnStretch(2, 1);
108
107 generalParameters_LAYOUT->addWidget(logEnableCheckBox, 0, 0, 1, 1);
109 generalParameters_LAYOUT->addWidget(logEnableCheckBox, 0, 0, 1, 1);
108 generalParameters_LAYOUT->addWidget(logFileChooseButton, 0, 1, 1, 1);
110 generalParameters_LAYOUT->addWidget(logFileChooseButton, 0, 1, 1, 1);
109 generalParameters_LAYOUT->addWidget(rmapSourceLogicalAddressLabel, 1, 0, 0);
111 generalParameters_LAYOUT->addWidget(rmapSourceLogicalAddressLabel, 1, 0, 0);
@@ -10,8 +10,10 WFPage::WFPage(QWidget *parent) :
10 wfPlot_b2 = new WFPlot();
10 wfPlot_b2 = new WFPlot();
11 wfPlot_b3 = new WFPlot();
11 wfPlot_b3 = new WFPlot();
12 //
12 //
13 wfPlot_v->customPlot->setTitle("v");
13 //wfPlot_v->customPlot->setTitle("v");
14 wfPlot_e1->customPlot->setTitle("e1");
14 wfPlot_v->customPlot->setGraphName(0, "v");
15 //wfPlot_e1->customPlot->setTitle("e1");
16 wfPlot_e1->customPlot->setGraphName(0, "e1");
15 wfPlot_e2->customPlot->setTitle("e2");
17 wfPlot_e2->customPlot->setTitle("e2");
16 wfPlot_b1->customPlot->setTitle("b1");
18 wfPlot_b1->customPlot->setTitle("b1");
17 wfPlot_b2->customPlot->setTitle("b2");
19 wfPlot_b2->customPlot->setTitle("b2");
@@ -38,6 +38,7 void WFPlot::displayOnPlot(short *data,
38
38
39 customPlot->setGraphData(0, qListX, qListY);
39 customPlot->setGraphData(0, qListX, qListY);
40 customPlot->rescaleAxis();
40 customPlot->rescaleAxis();
41 customPlot->setGraphName(0, "v");
41 }
42 }
42
43
43
44
General Comments 0
You need to be logged in to leave comments. Login now