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