mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-10-23 16:13:52 +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;
|
||||
|
||||
ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db");
|
||||
|
||||
ConfigurationKeyMap getConfigurationKeys();
|
||||
ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db", 0, getConfigurationKeys());
|
||||
|
||||
volatile bool gbShutdown = false;
|
||||
static void ctrlCHandler(int signo)
|
||||
@@ -139,3 +139,38 @@ int main(int argc, char *argv[])
|
||||
delete trx;
|
||||
// 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