repo.or.cz
/
ExpressLRS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Increase maximum number of Lua params (#2207)
[ExpressLRS.git]
/
src
/
python
/
linspace_hopfreqs_gen_915AU.py
blob
8d02c288482d2b298fed9be9bf3bfba21aaa8572
1
import
numpy
as
np
2
3
start
=
915000000
4
stop
=
928000000
5
bandwidth
=
500000
6
numfreqs
=
20
7
stopband
=
100000
8
9
output
=
np
.
linspace
(
start
,
stop
,
numfreqs
)
10
11
12
prev
=
start
+
bandwidth
/
2
+
250000
13
startf
=
prev
14
15
for
x
in
range
(
0
,
numfreqs
):
16
print
(
prev
)
17
prev
=
prev
+
bandwidth
+
stopband
18
19
20
print
(
startf
-(
start
+
bandwidth
/
2
))
21
print
(
stop
-(
prev
+
bandwidth
/
2
))