Skip to content
Snippets Groups Projects
Commit c35dc481 authored by Sai Lakhan Ekal's avatar Sai Lakhan Ekal
Browse files

change simulated phase from radian to degrees

parent 995dfd0c
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ class VnaDummy:
self.simulated_state = shared_simulated_state.get_simulated_state()
self.last_simulated_time = self.simulated_state.simulated_time
self.tau_mag = 25
self.tau_phase = 50
self.tau_phase = 35
self.reference_magnitude = 7 # at reference temp and reference hum
self.reference_phase = 70 # at reference temp and reference hum
self.reference_temp = 25
......@@ -94,8 +94,9 @@ class VnaDummy:
self.simulated_traces = trace
self.result_format = result_format
real_val = self.simulated_magnitude * math.cos(self.simulated_phase)
imaginary_val = self.simulated_magnitude * math.sin(self.simulated_phase)
phase_radian = self.simulated_phase / 180. * math.pi
real_val = self.simulated_magnitude * math.cos(phase_radian)
imaginary_val = self.simulated_magnitude * math.sin(phase_radian)
measurment_string = ' '
for i in range(50):
......
{"delta_temp": 0.2, "delta_hum": 0.2, "delta_mag":0.01 , "delta_phase": 0.05, "sleep_time": 1.0}
\ No newline at end of file
{"delta_temp": 0.2, "delta_hum": 0.2, "delta_mag":0.01 , "delta_phase": 0.0005, "sleep_time": 1.0}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment