From 436e964dc683cae07ea47db9a76feb8a5b258d59 Mon Sep 17 00:00:00 2001 From: kerrsmith <12290040+kerrsmith@users.noreply.github.com> Date: Fri, 20 Apr 2018 15:37:11 +0100 Subject: [PATCH] Update VnArduino.ino There are a couple of errors in the formula description comments for calculating RS and XS, the code is correct, just the descriptions are slightly wrong. --- VnArduino.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VnArduino.ino b/VnArduino.ino index 6ad13bd..9be867c 100644 --- a/VnArduino.ino +++ b/VnArduino.ino @@ -559,8 +559,8 @@ a=Rho*cos(phi) b=Rho*sin(phi) ZL=(1+Z)/(1-Z)*Z0 ZL=RS+jXS avec -RS=abs(1-a²-b²)/((1-a)²+b²) -XS=abs(2b/((1-a)²-b²)) +RS=abs(1-a²-b²)/((1-a)²+b²)*Z0 +XS=abs(2b/((1-a)²+b²))*Z0 |Z|=sqrt(RS²+XS²) SWR=(1+Rho)/(1-Rho) */