docs: finish the rf test comments

This commit is contained in:
ApsisRS contributors 2026-10-02 01:57:45 +08:00
parent 68735b2075
commit afce83a670
2 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ fn eirp_sums_the_power_gain_and_loss() {
let budget = downlink(); let budget = downlink();
// 10 dBW + 30 dBi - 1 dB = 39 dBW. // 10 dBW + 30 dBi - 1 dB = 39 dBW.
// 10 dBW + 30 dBi - 1 dB = 39 dBW。 // 10 dBW + 30 dBi - 1 dB = 39 dBW。
// 10 dBW + 30 dBi - 1 dB = 39 dBW。
let eirp = budget.eirp().expect("valid budget"); let eirp = budget.eirp().expect("valid budget");
assert!((eirp.dbw().expect("positive") - 39.0).abs() < TOLERANCE); assert!((eirp.dbw().expect("positive") - 39.0).abs() < TOLERANCE);
} }
@ -66,6 +67,7 @@ fn the_carrier_power_matches_the_hand_computation() {
let carrier = budget.received_power().expect("valid budget"); let carrier = budget.received_power().expect("valid budget");
// 39 dBW - 205.627 dB + 35 dBi - 0.5 dB = -132.127 dBW. // 39 dBW - 205.627 dB + 35 dBi - 0.5 dB = -132.127 dBW.
// 39 dBW - 205.627 dB + 35 dBi - 0.5 dB = -132.127 dBW。 // 39 dBW - 205.627 dB + 35 dBi - 0.5 dB = -132.127 dBW。
// 39 dBW - 205.627 dB + 35 dBi - 0.5 dB = -132.127 dBW。
assert!( assert!(
(carrier.dbw().expect("positive") + 132.127_080_075_172_1).abs() < 1e-9, (carrier.dbw().expect("positive") + 132.127_080_075_172_1).abs() < 1e-9,
"{}", "{}",

View File

@ -45,6 +45,7 @@ fn path_loss_matches_the_engineering_form() {
// //
// L = 32.44 + 20 log10(d_km) + 20 log10(f_MHz) // L = 32.44 + 20 log10(d_km) + 20 log10(f_MHz)
// L = 32.44 + 20 log10(d_km) + 20 log10(f_MHz) // L = 32.44 + 20 log10(d_km) + 20 log10(f_MHz)
// L = 32.44 + 20 log10(d_km) + 20 log10(f_MHz)
// //
// has a constant that follows from the speed of light rounded to // has a constant that follows from the speed of light rounded to
// 299 792 458 m/s, and agrees with the expression used here to the // 299 792 458 m/s, and agrees with the expression used here to the