Exemple #1
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
Exemple #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
Exemple #3
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
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
 def _elevations(self):
     return list(get_elevations_for_flight(self.flight))
Exemple #6
0
 def _elevations(self):
     return list(get_elevations_for_flight(self.flight))