Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ionosonde
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nick Hoang
ionosonde
Commits
d52d6851
Commit
d52d6851
authored
2 years ago
by
Juha Vierinen
Browse files
Options
Downloads
Patches
Plain Diff
simplified sensors script
parent
bd53b884
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gps_sensors.py
+15
-22
15 additions, 22 deletions
gps_sensors.py
with
15 additions
and
22 deletions
gps_sensors.py
+
15
−
22
View file @
d52d6851
...
...
@@ -2,30 +2,23 @@
#
# Demonstrate the use of internal gpsdo and set launch time on a N200.
#
from
gnuradio
import
gr
,
gru
,
uhd
import
time
,
math
,
os
from
time
import
strftime
,
gmtime
import
datetime
import
calendar
import
signal
,
errno
import
sys
import
subprocess
u
=
uhd
.
usrp_source
(
device_addr
=
""
,
io_type
=
uhd
.
io_type
.
COMPLEX_FLOAT32
,
num_channels
=
1
)
import
uhd
u
=
uhd
.
usrp
.
MultiUSRP
()
u
.
set_clock_source
(
"
gpsdo
"
)
print
u
.
get_mboard_sensor
(
"
gps_gpgga
"
)
print
u
.
get_mboard_sensor
(
"
gps_gprmc
"
)
print
u
.
get_mboard_sensor
(
"
gps_time
"
)
print
u
.
get_mboard_sensor
(
"
gps_locked
"
)
# is the gps clock locked?
print
u
.
get_mboard_sensor
(
"
gps_servo
"
)
print
u
.
get_mboard_sensor
(
"
ref_locked
"
)
print
u
.
get_mboard_sensor
(
"
mimo_locked
"
)
tnow
=
u
.
get_time_last_pps
().
get_real_secs
()
tstart
=
math
.
ceil
(
tnow
)
+
10.0
print
"
Time of last PPS %1.2f Starting sampling at %1.2f
"
%
(
tnow
,
tstart
)
print
(
u
.
get_mboard_sensor
(
"
gps_gpgga
"
))
print
(
u
.
get_mboard_sensor
(
"
gps_locked
"
))
print
(
u
.
get_mboard_sensor
(
"
gps_time
"
))
print
(
u
.
get_mboard_sensor
(
"
gps_gprmc
"
))
#print u.get_mboard_sensor("gps_servo")
#print u.get_mboard_sensor("ref_locked")
#print u.get_mboard_sensor("mimo_locked")
#tnow = u.get_time_last_pps().get_real_secs()
#tstart = math.ceil(tnow)+10.0
#print "Time of last PPS %1.2f Starting sampling at %1.2f"%(tnow,tstart)
#u.set_start_time(uhd.time_spec(tstart))
#ns = gr.null_sink(gr.sizeof_gr_complex)
#fg = gr.top_block()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment