예제 #1
0
파일: flight.py 프로젝트: bbonamin/Skylines
def _get_elevations(flight):
    elevations = get_elevations_for_flight(flight)

    # Encode lists
    elevations_t = xcsoar.encode([t for t, h in elevations], method="signed")
    elevations_h = xcsoar.encode([h for t, h in elevations], method="signed")

    return elevations_t, elevations_h
예제 #2
0
def _get_elevations(flight):
    elevations = get_elevations_for_flight(flight)

    # Encode lists
    elevations_t = xcsoar.encode([t for t, h in elevations], method="signed")
    elevations_h = xcsoar.encode([h for t, h in elevations], method="signed")

    return elevations_t, elevations_h
예제 #3
0
파일: flight.py 프로젝트: kedder/skylines
def _get_elevations(flight, encoder):
    elevations = get_elevations_for_flight(flight)

    # Encode lists
    elevations_t = encoder.encodeList([t for t, h in elevations])
    elevations_h = encoder.encodeList([h for t, h in elevations])

    return elevations_t, elevations_h
예제 #4
0
def _get_elevations(flight, encoder):
    elevations = get_elevations_for_flight(flight)

    # Encode lists
    elevations_t = encoder.encodeList([t for t, h in elevations])
    elevations_h = encoder.encodeList([h for t, h in elevations])

    return elevations_t, elevations_h
예제 #5
0
 def _elevations(self):
     return list(get_elevations_for_flight(self.flight))
예제 #6
0
 def _elevations(self):
     return list(get_elevations_for_flight(self.flight))