Silence unused-variable warning (#2872)
[ExpressLRS.git] / src / html / cw.html
bloba536bb1aa8efba68676ed02b56a81554e23ee873
1 @@require(PLATFORM, VERSION, chip)
2 <!DOCTYPE HTML>
3 <html>
5 <head>
6 <title>Welcome to your ExpressLRS System</title>
7 <meta charset="utf-8" />
8 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 <link rel="stylesheet" href="elrs.css" />
10 </head>
12 <body>
13 <header class="mui-appbar mui--z1 mui--text-center elrs-header">
14 @@include("logo-template.svg")
15 <h1><b>ExpressLRS</b></h1>
16 <span id="product_name"></span><br/>
17 <b>Firmware Rev. </b>@@{VERSION} <span id="reg_domain"></span>
18 </header>
19 <br>
20 <div class="mui-container-fluid mui-col-sm-10 mui-col-sm-offset-1">
21 <div class="mui-panel">
22 This page puts the Semtech LoRa chip into a mode where it transmits a continuous wave with a center frequency of <span id="frequency"></span> MHz.
23 <br>
24 You can then measure the actual continuous wave center frequency using a spectrum analyzer and enter the measured value below
25 and this will be used to calculate the accuracy of the crystal used in the device and how far it differs from the ideal frequency.
26 <form>
27 <div id="radioOption" class="mui-radio" style="display: none;">
28 <label>
29 <input type="radio"
30 name="optionsRadios"
31 id="optionsRadios1"
32 value="1"
33 checked>
34 Radio 1
35 </label>
36 <label>
37 <input type="radio"
38 name="optionsRadios"
39 id="optionsRadios2"
40 value="2">
41 Radio 2
42 </label>
43 </div>
44 <br>
45 @@if chip == 'LR1121':
46 Basic support is available for the LR1121 and setting 915 MHz.
47 <br>
48 <div class="mui-checkbox">
49 <label>
50 <input type="checkbox"
51 name="setSubGHz"
52 id="optionsSetSubGHz">
53 Set 915 MHz
54 </label>
55 </div>
56 @@end
57 <br>
58 <button id="start-cw" class="mui-btn mui-btn--primary" disabled>Start Continuous Wave</button>
59 </form>
60 <br>
61 <div class="mui-textfield">
62 <input id='measured' type='text' required/>
63 <label>Center Frequency</label>
64 </div>
65 <div id="result" style="display: none;">
66 <table class="mui-table mui-table--bordered">
67 <tr><td>Calculated XO Freq</td><td id="calculated"></td></tr>
68 <tr><td>Calculated XO Offset (kHz)</td><td id="offset"></td></tr>
69 <tr><td>Calculated XO Offset (PPM)</td><td id="ppm"></td></tr>
70 <tr><td>Raw Offset (kHz)</td><td id="raw"></td></tr>
71 <tr><td>TL;DR</td><td id="tldr"></td></tr>
72 </table>
73 </div>
74 </div>
75 </div>
76 </body>
77 <script src="cw.js"></script>
78 </html>