last update to chris
This commit is contained in:
@@ -246,7 +246,8 @@ class RadarManager:
|
||||
|
||||
|
||||
def load_waveform(self, ch, amp, bw, pw):
|
||||
addr = 0x0010000 + 0x0010000 * ch
|
||||
# addr = 0x0010000 + 0x0010000 * ch
|
||||
addr = 0x0020000 + 0x0020000 * ch
|
||||
print('Load', hex(addr))
|
||||
num_samples = pw
|
||||
wf = form_chirp(pw, bw, 1)
|
||||
|
||||
@@ -25,7 +25,7 @@ def main():
|
||||
headers = []
|
||||
offset = 0
|
||||
|
||||
file = 'test0.bin'
|
||||
file = 'test1.bin'
|
||||
fid = open(file, 'rb')
|
||||
|
||||
# Find header, recording buffer could have wrapped depending on data rate and how long we ran for
|
||||
|
||||
@@ -54,7 +54,7 @@ def main():
|
||||
pri -= (pri % 3)
|
||||
# pri = int(.0001 * clk)
|
||||
print(pri)
|
||||
inter_cpi = 2000
|
||||
inter_cpi = 20000
|
||||
tx_lo_offset = 10e6
|
||||
rx_lo_offset = 0
|
||||
|
||||
@@ -66,9 +66,9 @@ def main():
|
||||
|
||||
|
||||
recorder0 = DataRecorder("192.168.2.128", 1234, packet_size=radar.packet_size)
|
||||
# recorder1 = DataRecorder("192.168.3.128", 1235, packet_size=radar.packet_size)
|
||||
recorder1 = DataRecorder("192.168.3.128", 1235, packet_size=radar.packet_size)
|
||||
recorder0.start_recording('test0.bin', True)
|
||||
# recorder1.start_recording('test1.bin', True)
|
||||
recorder1.start_recording('test1.bin', True)
|
||||
|
||||
radar.configure_cpi(pri, inter_cpi, num_pulses, num_samples, start_sample,
|
||||
tx_num_samples, tx_start_sample, rx_lo_offset, tx_lo_offset)
|
||||
@@ -81,8 +81,8 @@ def main():
|
||||
radar.stop_running()
|
||||
# Stop the data recorder
|
||||
recorder0.stop_recording()
|
||||
# recorder1.stop_recording()
|
||||
#
|
||||
recorder1.stop_recording()
|
||||
|
||||
# # Parse some data
|
||||
#
|
||||
# # Find header, recording buffer could have wrapped depending on data rate and how long we ran for
|
||||
|
||||
Reference in New Issue
Block a user