diff --git a/plugins/posistagenet/main.js b/plugins/posistagenet/main.js
index 7c55407..07f3db9 100644
--- a/plugins/posistagenet/main.js
+++ b/plugins/posistagenet/main.js
@@ -39,6 +39,7 @@ exports.data = function data(_device, buf) {
data: device.psn.data,
info: device.psn.info,
};
+ device.draw();
}
};
diff --git a/plugins/posistagenet/styles.css b/plugins/posistagenet/styles.css
index 60ef375..7d0c370 100644
--- a/plugins/posistagenet/styles.css
+++ b/plugins/posistagenet/styles.css
@@ -1,3 +1,11 @@
-[id^='tracker-'] {
- color: white;
+table,
+th,
+td {
+ border: 1px solid darkgray;
+ border-collapse: collapse;
+ color: gainsboro;
+}
+
+td {
+ text-align: center;
}
diff --git a/plugins/posistagenet/template.ejs b/plugins/posistagenet/template.ejs
index 0e8684e..9d2a410 100644
--- a/plugins/posistagenet/template.ejs
+++ b/plugins/posistagenet/template.ejs
@@ -1,16 +1,95 @@
<%= data.info.system_name ? data.info.system_name : '' %> PosiStageNet
+ <%= listName%>
| + | + | POS | +SPEED | +ORI | ++ | ACCEL | +TRGTPOS | + + +|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | +Name | +x | +y | +z | + +x | +y | +z | + +x | +y | +z | + +validity | + +x | +y | +z | + +x | +y | +z | + +tracker_timestamp | +
| <%= trackerId %> | +<%= trackerInfo.name %> | + + +<%= trackerData.pos_x?.toFixed(2) %> | +<%= trackerData.pos_y?.toFixed(2) %> | +<%= trackerData.pos_z?.toFixed(2) %> | + + +<%= trackerData.speed_x?.toFixed(2) %> | +<%= trackerData.speed_y?.toFixed(2) %> | +<%= trackerData.speed_z?.toFixed(2) %> | + + +<%= trackerData.ori_x?.toFixed(2) %> | +<%= trackerData.ori_y?.toFixed(2) %> | +<%= trackerData.ori_z?.toFixed(2) %> | + +<%= trackerData.validity?.toFixed(2) %> | + + +<%= trackerData.accel_x?.toFixed(2) %> | +<%= trackerData.accel_y?.toFixed(2) %> | +<%= trackerData.accel_z?.toFixed(2) %> | + + +<%= trackerData.trgtpos_x?.toFixed(2) %> | +<%= trackerData.trgtpos_y?.toFixed(2) %> | +<%= trackerData.trgtpos_z?.toFixed(2) %> | + + +<%= trackerData.tracker_timestamp %> | + + +