mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fix some more places where antenna path matters
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user