'''
import sys

from unittest import TestCase

class Evaluate(TestCase):
    def test_exercise(self):
        #import exercise_01  # Imports and runs student's solution
        output = sys.stdout.getvalue()  # Returns output since this function started
        print("-----------------------------------")
        print(output)
        self.assertEqual(79000000000.0, output, "You must print Hello World")
'''

# define constant parameters
speed_of_light = 3 * 10**8      # m/sec
frequency_low = 77 * 10**9      # in Hz
frequency_high = 81 * 10**9  # in Hz
chirp_slope = 266 * 10**12             # in Hz/seconds

## TO DO.. 1. Find the centre frequency of the RF signal and print
frequency_center = (frequency_high + frequency_low)/2
print(frequency_center)


## TO DO.. 2. Find the wavelength of the RF signal in mm using centre frequency and print
wavelength = speed_of_light / frequency_center
wavelength = wavelength * 1000 # converted into mm
print(wavelength)


## TO DO.. 3. Find the BW (Bandwidth) in Hz of the signal
signal_bandwidth = frequency_high - frequency_low
print(signal_bandwidth)


## TO DO.. 4. Find the chirp time or sweep time in seconds
chirp_time = signal_bandwidth / chirp_slope
print(chirp_time)

'''
eval =Evaluate()
eval.test_exercise()
'''
728x90

+ Recent posts