diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-25 19:53:21 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-30 18:22:12 +0200 |
commit | eececf5fa96875e93d622299408423766c6e35d0 (patch) | |
tree | d74ed74db47e09c84b669fffbb7808784cf99824 /src/osmo-bts-sysmo/main.c | |
parent | bc24955e91f050e904851f589400eac4c3443917 (diff) |
sysmobts: Make it possible to slowly ramp up the output power
For systems with a bigger PA enabling the full output power at
once might draw more current than a power supply can provide. This
code will step up the output power in smaller steps to avoid this
situation.
Diffstat (limited to 'src/osmo-bts-sysmo/main.c')
-rw-r--r-- | src/osmo-bts-sysmo/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index bd11472b..fac45d9c 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -84,6 +84,11 @@ int bts_model_init(struct gsm_bts *bts) } bts->c0->nominal_power = rc; + /* Initial values for the power adjustments */ + bts->c0->pa.max_initial_power = 23; + bts->c0->pa.step_size = 2; + bts->c0->pa.step_interval = 1; + bts_model_vty_init(bts); return 0; |