Skip to content

Commit

Permalink
Fix reciever typo, -> receiver (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
iancleary authored Apr 12, 2024
1 parent 321d634 commit 0b4b20d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/budget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl LinkBudget {
crate::fspl::calculate_free_space_path_loss(self.frequency, slant_range)
}

pub fn pin_at_reciever(&self) -> f64 {
pub fn pin_at_receiver(&self) -> f64 {
let free_space_path_loss = self.fspl();

// Assumes receiver input power is spread across the bandwidth
Expand All @@ -44,7 +44,7 @@ impl LinkBudget {
}
pub fn snr(&self) -> f64 {
// returns value in dB
self.receiver.calculate_snr(self.pin_at_reciever())
self.receiver.calculate_snr(self.pin_at_receiver())
}

pub fn snr_linear(&self) -> f64 {
Expand Down Expand Up @@ -91,7 +91,7 @@ impl LinkBudget {
print_row("Free Space Path Loss", &self.fspl().to_string(), "dB");
print_row(
"Receiver Input Power",
&self.pin_at_reciever().to_string(),
&self.pin_at_receiver().to_string(),
"dBm",
);
print_row("SNR", &self.snr().to_string(), "dB");
Expand Down

0 comments on commit 0b4b20d

Please sign in to comment.