Ejemplo n.º 1
0
def test_computeDistanceDelay1():
    '''
  Utility test
  '''
    symbolIndex = 1.
    chipIndex = 0.
    signal = GPS.L1CA
    delay = computeDistanceDelay(symbolIndex, chipIndex, signal)
    assert delay == 1. / signal.SYMBOL_RATE_HZ * C
Ejemplo n.º 2
0
def test_computeDistanceDelay0():
    '''
  Utility test
  '''
    symbolIndex = 0.
    chipIndex = 0.
    signal = GPS.L1CA
    delay = computeDistanceDelay(symbolIndex, chipIndex, signal)
    assert delay == 0.