fix some more places where antenna path matters

This commit is contained in:
HB9HIL
2024-11-21 15:26:35 +01:00
parent 99371bcef2
commit 3406ffa63b
6 changed files with 13 additions and 13 deletions

View File

@@ -1259,7 +1259,7 @@ class Logbook extends CI_Controller {
}
/* return station bearing */
function bearing($locator, $unit = 'M', $station_id = null) {
function bearing($locator, $unit = 'M', $station_id = null, $ant_path = null) {
if(!$this->load->is_loaded('Qra')) {
$this->load->library('Qra');
}
@@ -1283,7 +1283,7 @@ class Logbook extends CI_Controller {
$mylocator = $this->config->item('locator');
}
$bearing = $this->qra->bearing($mylocator, $locator, $unit);
$bearing = $this->qra->bearing($mylocator, $locator, $unit, $ant_path);
return $bearing;
}
@@ -1291,7 +1291,7 @@ class Logbook extends CI_Controller {
}
/* return distance */
function distance($locator, $station_id = null) {
function distance($locator, $station_id = null, $ant_path = null) {
$distance = 0;
if(!$this->load->is_loaded('Qra')) {
$this->load->library('Qra');
@@ -1316,7 +1316,7 @@ class Logbook extends CI_Controller {
$mylocator = $this->config->item('locator');
}
$distance = $this->qra->distance($mylocator, $locator, 'K');
$distance = $this->qra->distance($mylocator, $locator, 'K', $ant_path);
}
return $distance;