Started the code that will replace satellite names with LOTW suitable names based on the name mapping
这个提交包含在:
		
							父节点
							
								
									2d17ff8c9d
								
							
						
					
					
						当前提交
						7195538e5a
					
				
					共有  1 个文件被更改,包括 30 次插入 和 1 次删除
				
			
		|  | @ -769,4 +769,33 @@ class Lotw extends CI_Controller { | |||
| 
 | ||||
| 	} | ||||
| 
 | ||||
| 	public function sat() { | ||||
| 		$satellite_name_check = $this->lotw_satellite_map('ISS'); | ||||
| 
 | ||||
| 		if($satellite_name_check != FALSE) { | ||||
| 			echo $satellite_name_check; | ||||
| 		} else { | ||||
| 			echo "no match"; | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	/* | ||||
| 	|	Function: lotw_satellite_map | ||||
| 	|	Requires: OSCAR Satellite name $satname | ||||
| 	| | ||||
| 	|	Outputs if LOTW uses a different satellite name | ||||
| 	| | ||||
| 	*/ | ||||
| 	function lotw_satellite_map($satname) { | ||||
| 		$arr = array( | ||||
| 			"ARISS"		=>	"ISS", | ||||
| 			"UKUBE1"	=>	"UKUBE-1", | ||||
| 			"KEDR"		=>	"ARISSAT-1", | ||||
| 			"TO-108"	=>	"CAS-6", | ||||
| 			"TAURUS"	=>	"TAURUS-1", | ||||
| 		); | ||||
| 
 | ||||
| 		return array_search(strtoupper($satname),$arr,true); | ||||
| 	} | ||||
| 
 | ||||
| } // end class
 | ||||
|  |  | |||
		正在加载…
	
		在新工单中引用