kopia lustrzana https://github.com/miguelvaca/vk3cpu
Update short_antenna.html
rodzic
3bd538d730
commit
8f6eb1a1ae
|
@ -338,6 +338,8 @@
|
||||||
fctx.fillText("Wire : " + (40-conductor_diameter_slider.value).toString() + "AWG : " +
|
fctx.fillText("Wire : " + (40-conductor_diameter_slider.value).toString() + "AWG : " +
|
||||||
"\u2300 = " + cond_diameter_inches.toFixed(4).toString() + "\" " +
|
"\u2300 = " + cond_diameter_inches.toFixed(4).toString() + "\" " +
|
||||||
"(" + cond_diameter_mm.toFixed(3).toString() + " mm)", loopx, 16);
|
"(" + cond_diameter_mm.toFixed(3).toString() + " mm)", loopx, 16);
|
||||||
|
|
||||||
|
fctx.font = normal_font;
|
||||||
|
|
||||||
const wire_x = win_width * 0.50;
|
const wire_x = win_width * 0.50;
|
||||||
const up_wire_top_y = 40;
|
const up_wire_top_y = 40;
|
||||||
|
@ -382,14 +384,16 @@
|
||||||
fctx.fillText("0.00", wire_x + 60, down_wire_bot_y + 5);
|
fctx.fillText("0.00", wire_x + 60, down_wire_bot_y + 5);
|
||||||
//drawArrow(fctx, wire_x + 10, up_wire_bot_y, -0.5*Math.PI);
|
//drawArrow(fctx, wire_x + 10, up_wire_bot_y, -0.5*Math.PI);
|
||||||
const L = Xl / (2 * Math.PI * dipole.frequency_hz * 0.000001);
|
const L = Xl / (2 * Math.PI * dipole.frequency_hz * 0.000001);
|
||||||
|
fctx.font = emphasis_font;
|
||||||
fctx.fillText("L = " + L.toFixed(1).toString() + " \u00B5H", wire_x + 20, d_pos - 4);
|
fctx.fillText("L = " + L.toFixed(1).toString() + " \u00B5H", wire_x + 20, d_pos - 4);
|
||||||
|
fctx.font = normal_font;
|
||||||
fctx.fillText("X = " + Xl.toFixed(1).toString() + " \u03A9", wire_x + 20, d_pos + 12);
|
fctx.fillText("X = " + Xl.toFixed(1).toString() + " \u03A9", wire_x + 20, d_pos + 12);
|
||||||
fctx.font = frequency_font;
|
fctx.font = frequency_font;
|
||||||
fctx.fillText("f = " + (dipole.frequency_hz * 1e-6).toFixed(2).toString() + " MHz", 20, down_wire_bot_y - 36);
|
fctx.fillText("f = " + (dipole.frequency_hz * 1e-6).toFixed(2).toString() + " MHz", 20, down_wire_bot_y - 36);
|
||||||
fctx.font = loop_dia_font;
|
fctx.font = loop_dia_font;
|
||||||
fctx.fillText("l = " + (antenna_length_slider.value * 1e2).toFixed(2).toString() + " %", 20, down_wire_bot_y - 18);
|
fctx.fillText("l = " + (antenna_length_slider.value * 1e2).toFixed(1).toString() + " %", 20, down_wire_bot_y - 18);
|
||||||
fctx.font = spacing_font;
|
fctx.font = spacing_font;
|
||||||
fctx.fillText("d = " + (dipole.spacing_ratio * 1e2).toFixed(2).toString() + " %", 20, down_wire_bot_y );
|
fctx.fillText("d = " + (dipole.spacing_ratio * 1e2).toFixed(1).toString() + " %", 20, down_wire_bot_y );
|
||||||
fctx.font = cond_dia_font;
|
fctx.font = cond_dia_font;
|
||||||
|
|
||||||
//fctx.textAlign = "center";
|
//fctx.textAlign = "center";
|
||||||
|
|
Ładowanie…
Reference in New Issue