mirror of
				https://github.com/RangeNetworks/openbts.git
				synced 2025-11-04 05:43:14 +00:00 
			
		
		
		
	Missed some stuff. Suggested by Chris Newman
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6402 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
		@@ -44,8 +44,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
using namespace std;
 | 
					using namespace std;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db");
 | 
					ConfigurationKeyMap getConfigurationKeys();
 | 
				
			||||||
 | 
					ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db", 0, getConfigurationKeys());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
volatile bool gbShutdown = false;
 | 
					volatile bool gbShutdown = false;
 | 
				
			||||||
static void ctrlCHandler(int signo)
 | 
					static void ctrlCHandler(int signo)
 | 
				
			||||||
@@ -139,3 +139,38 @@ int main(int argc, char *argv[])
 | 
				
			|||||||
  delete trx;
 | 
					  delete trx;
 | 
				
			||||||
//  delete radio;
 | 
					//  delete radio;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ConfigurationKeyMap getConfigurationKeys()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						ConfigurationKeyMap map;
 | 
				
			||||||
 | 
						ConfigurationKey *tmp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						tmp = new ConfigurationKey("TRX.RadioFrequencyOffset","128",
 | 
				
			||||||
 | 
							"~170Hz steps",
 | 
				
			||||||
 | 
							ConfigurationKey::FACTORY,
 | 
				
			||||||
 | 
							ConfigurationKey::VALRANGE,
 | 
				
			||||||
 | 
							"96:160",// educated guess
 | 
				
			||||||
 | 
							true,
 | 
				
			||||||
 | 
							"Fine-tuning adjustment for the transceiver master clock.  "
 | 
				
			||||||
 | 
								"Roughly 170 Hz/step.  "
 | 
				
			||||||
 | 
								"Set at the factory.  "
 | 
				
			||||||
 | 
								"Do not adjust without proper calibration."
 | 
				
			||||||
 | 
						);
 | 
				
			||||||
 | 
						map[tmp->getName()] = *tmp;
 | 
				
			||||||
 | 
						delete tmp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						tmp = new ConfigurationKey("TRX.TxAttenOffset","0",
 | 
				
			||||||
 | 
							"dB of attenuation",
 | 
				
			||||||
 | 
							ConfigurationKey::FACTORY,
 | 
				
			||||||
 | 
							ConfigurationKey::VALRANGE,
 | 
				
			||||||
 | 
							"0:100",// educated guess
 | 
				
			||||||
 | 
							true,
 | 
				
			||||||
 | 
							"Hardware-specific gain adjustment for transmitter, matched to the power amplifier, expessed as an attenuationi in dB.  "
 | 
				
			||||||
 | 
								"Set at the factory.  "
 | 
				
			||||||
 | 
								"Do not adjust without proper calibration."
 | 
				
			||||||
 | 
						);
 | 
				
			||||||
 | 
						map[tmp->getName()] = *tmp;
 | 
				
			||||||
 | 
						delete tmp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return map;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user