@@ -68,6 +68,10 @@ discard block |
||
| 68 | 68 | 't', 'u', 'v', 'w' // 119 |
| 69 | 69 | ); // char 64 |
| 70 | 70 | */ |
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * @param integer $ascii |
|
| 74 | + */ |
|
| 71 | 75 | private function asciidec_2_8bit($ascii) { |
| 72 | 76 | //only process in the following range: 48-87, 96-119 |
| 73 | 77 | if ($ascii < 48) { } |
@@ -93,6 +97,10 @@ discard block |
||
| 93 | 97 | return(substr($bin, -6)); |
| 94 | 98 | } |
| 95 | 99 | |
| 100 | + /** |
|
| 101 | + * @param integer $_start |
|
| 102 | + * @param integer $_size |
|
| 103 | + */ |
|
| 96 | 104 | private function binchar($_str, $_start, $_size) { |
| 97 | 105 | // ' ' --- '?', // 0x20 - 0x3F |
| 98 | 106 | // '@' --- '_', // 0x40 - 0x5F |
@@ -117,6 +125,10 @@ discard block |
||
| 117 | 125 | } |
| 118 | 126 | |
| 119 | 127 | // function for decoding the AIS Message ITU Payload |
| 128 | + |
|
| 129 | + /** |
|
| 130 | + * @param string $_aisdata |
|
| 131 | + */ |
|
| 120 | 132 | private function decode_ais($_aisdata) { |
| 121 | 133 | $ro = new stdClass(); // return object |
| 122 | 134 | $ro->cls = 0; // AIS class undefined, also indicate unparsed msg |
@@ -345,6 +357,12 @@ discard block |
||
| 345 | 357 | elseif ($code == 99) return 'Other Type, no additional information'; |
| 346 | 358 | } |
| 347 | 359 | |
| 360 | + /** |
|
| 361 | + * @param string $_itu |
|
| 362 | + * @param integer $_len |
|
| 363 | + * @param integer $_filler |
|
| 364 | + * @param string $aux |
|
| 365 | + */ |
|
| 348 | 366 | public function process_ais_itu($_itu, $_len, $_filler, $aux /*, $ais_ch*/) { |
| 349 | 367 | global $port; // tcpip port... |
| 350 | 368 | |
@@ -365,6 +383,10 @@ discard block |
||
| 365 | 383 | |
| 366 | 384 | // char* - AIS \r terminated string |
| 367 | 385 | // TCP based streams which send messages in full can use this instead of calling process_ais_buf |
| 386 | + |
|
| 387 | + /** |
|
| 388 | + * @param string $rawdata |
|
| 389 | + */ |
|
| 368 | 390 | public function process_ais_raw($rawdata, $aux = '') { // return int |
| 369 | 391 | static $num_seq; // 1 to 9 |
| 370 | 392 | static $seq; // 1 to 9 |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | /** |
| 16 | 16 | * Get SQL query part for filter used |
| 17 | 17 | * @param Array $filter the filter |
| 18 | - * @return Array the SQL part |
|
| 18 | + * @return string the SQL part |
|
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | 21 | public function getFilter($filter = array(),$where = false,$and = false) { |
@@ -552,25 +552,6 @@ discard block |
||
| 552 | 552 | * |
| 553 | 553 | * @param String $fammarine_id the ID |
| 554 | 554 | * @param String $ident the marine ident |
| 555 | - * @param String $departure_airport_icao the departure airport |
|
| 556 | - * @param String $arrival_airport_icao the arrival airport |
|
| 557 | - * @param String $latitude latitude of flight |
|
| 558 | - * @param String $longitude latitude of flight |
|
| 559 | - * @param String $waypoints waypoints of flight |
|
| 560 | - * @param String $heading heading of flight |
|
| 561 | - * @param String $groundspeed speed of flight |
|
| 562 | - * @param String $date date of flight |
|
| 563 | - * @param String $departure_airport_time departure time of flight |
|
| 564 | - * @param String $arrival_airport_time arrival time of flight |
|
| 565 | - * @param String $squawk squawk code of flight |
|
| 566 | - * @param String $route_stop route stop of flight |
|
| 567 | - * @param String $highlight highlight or not |
|
| 568 | - * @param String $ModeS ModesS code of flight |
|
| 569 | - * @param String $registration registration code of flight |
|
| 570 | - * @param String $pilot_id pilot id of flight (for virtual airlines) |
|
| 571 | - * @param String $pilot_name pilot name of flight (for virtual airlines) |
|
| 572 | - * @param String $verticalrate vertival rate of flight |
|
| 573 | - * @return String success or false |
|
| 574 | 555 | */ |
| 575 | 556 | public function addMarineData($fammarine_id = '', $ident = '', $latitude = '', $longitude = '', $heading = '', $groundspeed = '', $date = '', $mmsi = '',$type = '',$imo = '',$callsign = '',$status = '',$format_source = '', $source_name = '') |
| 576 | 557 | { |
@@ -1442,7 +1423,7 @@ discard block |
||
| 1442 | 1423 | /** |
| 1443 | 1424 | * Parses the direction degrees to working |
| 1444 | 1425 | * |
| 1445 | - * @param Float $direction the direction in degrees |
|
| 1426 | + * @param integer $direction the direction in degrees |
|
| 1446 | 1427 | * @return Array the direction information |
| 1447 | 1428 | * |
| 1448 | 1429 | */ |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * Get SQL query part for filter used |
| 16 | 16 | * @param Array $filter the filter |
| 17 | - * @return Array the SQL part |
|
| 17 | + * @return string the SQL part |
|
| 18 | 18 | */ |
| 19 | 19 | public function getFilter($filter = array(),$where = false,$and = false) { |
| 20 | 20 | global $globalFilter, $globalStatsFilters, $globalFilterName, $globalDBdriver; |
@@ -762,10 +762,6 @@ discard block |
||
| 762 | 762 | * |
| 763 | 763 | * @param String $fammarine_id the ID from flightaware |
| 764 | 764 | * @param String $ident the flight ident |
| 765 | - * @param String $aircraft_icao the aircraft type |
|
| 766 | - * @param String $departure_airport_icao the departure airport |
|
| 767 | - * @param String $arrival_airport_icao the arrival airport |
|
| 768 | - * @return String success or false |
|
| 769 | 765 | * |
| 770 | 766 | */ |
| 771 | 767 | public function addLiveMarineData($fammarine_id = '', $ident = '', $latitude = '', $longitude = '', $heading = '', $groundspeed = '', $date = '', $putinarchive = false, $mmsi = '',$type = '',$imo = '', $callsign = '',$status = '',$noarchive = false,$format_source = '', $source_name = '', $over_country = '') |