MCPcopy
hub / github.com/commaai/openpilot / append

Method append

selfdrive/locationd/helpers.py:62–67  ·  view source on GitHub ↗
(self, pt: list[float])

Source from the content-addressed store, hash-verified

60 return len(self.arr)
61
62 def append(self, pt: list[float]) -> None:
63 if len(self.arr) < self.maxlen:
64 self.arr = np.append(self.arr, [pt], axis=0)
65 else:
66 self.arr[:-1] = self.arr[1:]
67 self.arr[-1] = pt
68
69
70class PointBuckets:

Callers 15

decoderFunction · 0.80
__init__Method · 0.80
send_can_messagesMethod · 0.80
wheel_poll_threadFunction · 0.80
test_drivingMethod · 0.80
comment_images_on_prMethod · 0.80
get_multi_rangeMethod · 0.80
hevc_indexFunction · 0.80
_get_segments_localMethod · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by 15

test_drivingMethod · 0.64
test_prune_cacheMethod · 0.64
send_random_can_messagesFunction · 0.64
test_spi_corruptionMethod · 0.64
get_test_casesFunction · 0.64
_make_commitMethod · 0.64
setup_classMethod · 0.64
test_cpu_usageMethod · 0.64
test_timingsMethod · 0.64
create_maneuversFunction · 0.64