From 7f6e65d87fd80fa991d933622e7cc6671b81859f Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 5 Jan 2023 14:42:59 -0600 Subject: [PATCH] initial layout for sennheiser wireless --- plugins/sennheiser/channel.js | 95 ++++++++++++++++++++++++++++++ plugins/sennheiser/icon.png | Bin 0 -> 3266 bytes plugins/sennheiser/info.html | 0 plugins/sennheiser/main.js | 40 +++++++++++++ plugins/sennheiser/styles.css | 101 ++++++++++++++++++++++++++++++++ plugins/sennheiser/template.ejs | 52 ++++++++++++++++ 6 files changed, 288 insertions(+) create mode 100644 plugins/sennheiser/channel.js create mode 100644 plugins/sennheiser/icon.png create mode 100644 plugins/sennheiser/info.html create mode 100644 plugins/sennheiser/main.js create mode 100644 plugins/sennheiser/styles.css create mode 100644 plugins/sennheiser/template.ejs diff --git a/plugins/sennheiser/channel.js b/plugins/sennheiser/channel.js new file mode 100644 index 0000000..ce03de9 --- /dev/null +++ b/plugins/sennheiser/channel.js @@ -0,0 +1,95 @@ +class Channel { + constructor() { + // common attributes + this.frequency = { + hz: null, + bank: null, + channel: null, + }; + this.rfConfig = { + min: null, // hz + max: null, // hz + step: null, // hz + }; + this.name = ''; + this.mute = null; // 0 = disabled, 1 = enabled + this.firmwareRevision = ''; // #.#.# + + this.msg = []; // list of msg strings (Ok, Low Battery, Low RF Signal, etc.) + this.configIndex = null; + + // EM only + this.em = { + squelch: null, + afOut: null, + equalizer: null, // 0 = flat, 1 = low cut, 2 = low&high boost, 3 = high boost + rf1: { + min: null, // % + max: null, // % + active: null, // 0 = inactive, 1 = active + }, + rf2: { + min: null, // % + max: null, // % + active: null, // 0 = inactive, 1 = active + }, + states: { + mutes: { + // 4 bit number 1 bit per flag 0 = disabled, 1 = enabled + mute: null, // bit 0 + txMute: null, // bit 1 + rfMute: null, // bit 2 + rxMute: null, // bit 3 + }, + pilot: 0, // 0 = no pilot for cycle, 1 = pilot for whole cycle, 2 = pilot signle for part of cycle + }, + rf: { + level: 0, // % + antenna: null, // 1 or 2 + pilot: null, // 0 = no pilot, 1 = pilot + }, + af: { + peak: 0, // % + peakHold: 0, // % + mute: { + // 4 bit number 1 bit per flag + mute: null, + txMute: null, + rfMute: null, + rxMute: null, + }, + }, + bat: null, // % 0,30,70,100 + }; + + // SR Only + this.sr = { + sensitivity: null, // -42..0 + equalizer: { + enabled: null, // 0=off,1=on + low: null, // -5..5 + lowMid: null, // -5..5 + mid: null, // -5..5 + midHigh: null, // -5..5 + high: null, // -5..5 + }, + mode: null, // 0 = mono, 1 = stereo + af: [ + { + peak: 0, // % + peakHold: 0, // % + }, + { + peak: 0, // % + peakHold: 0, // % + }, + ], + states: { + mute: null, // 0 = on, 1 = off + muteFlag: null, // 0 = rf mute on whole cycle, 1 = rf mute off whole cycle, 2 = rf mute changed during cycle + }, + }; + } +} + +module.exports = Channel; diff --git a/plugins/sennheiser/icon.png b/plugins/sennheiser/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..2c0d01e369a0df25c983da12b1044df31a01a3e2 GIT binary patch literal 3266 zcmeAS@N?(olHy`uVBq!ia0vp^av;pX1SGcvS$+jl9aSL_B|(Yh3I#>^X_+~x3MG{V zsS2qTnQ06R6}L+JPIDeH;Bk4sN=fy_^NFE;9Gp4q(REL52z=Y{et~3XqQKny=Us0* z+&CFsqH>^h`SN$ER{lMaQ&Ka|o(!5?6!rSn$r7m){%__l&e@wd9~YHtY-4T@+dVJs zyhw3X(BhmulkzXlJAHHh@1{J){kpz+1>33^7`WInfo_WM^|4CM&(%vz$xlkvtH>HY5gN(z}Nwo2iqz6QPp&Z!xh9#uuD!Bu`C$yM3O zmMKd1c3d_URzL%CQ%e#RDspr3imfVamB8j&0ofp7eI*63l9Fs&r3l{u1?T*tR0R_~ z6Fmc6*NV(CBPBa71)HLjG^-#NH>eRno~=?wNlAf~zJ7Umxn8-kUVc%!zM-Y1rM`iY zzLAkGP=#)BWnM{Qg>GK4GRO#s87`^C$wiq3C7Jno3LrBRlk!VTY?YLN@(NJHLE#TK zJ+BxV2*BXb2g&Fg>KW)GD=*1R!=W4`gHR6AY!#4Mk(v|Xl9`*DR}6H5t&)k6DcCTC zY$O(0kV#gaxryni;h8BV83=6%36Ipw^bDX+U=~-&iPN$m9-W#L0g^l5X zg`No4+wZ@huiNuf;Ihf-r$)Wv44;1fN!n<@le{-B-Du`?=NSPasoQT~tXO?@)v8td z`McKsDzWNyQ;w2b611{z|N9?|H?ACh_@QdA)wDl#`Q(HDZpVO#XD=EVkNR@>p~C4;A1h+khUuj +

<%= listName %>

+

<%= data.channel.firmwareRevision %>

+ + + + + + + + + + + + + + + + +
<%= data.channel.name %>
+
+ 1 + 2 +
+ rf +
+
+
+ + TODO
+ dB +
+
+
 
+ audio +
+
+
+ + TODO
+ dB +
+
+
+
+ TODO +
+
+
+
+ TODO [msg and states] +