Уточнить обработку плотных трендов и восстановление сигналов
This commit is contained in:
@@ -10,6 +10,7 @@ from dataclasses import dataclass
|
||||
from protocan.legacycan import PROJECTS, LegacyCanFormat, decode
|
||||
|
||||
from .can485_board import BoardFrame, SdLogImport, parse_sd_log
|
||||
from .trend_limits import MAX_TOTAL_POINTS
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -63,7 +64,7 @@ def _values(frame: BoardFrame):
|
||||
|
||||
|
||||
def read_can_log(lines, *, reference_timestamp: float, capacity: int,
|
||||
max_total_points: int = 1_000_000,
|
||||
max_total_points: int = MAX_TOTAL_POINTS,
|
||||
frame_limit: int = 100_000) -> tuple[list[CanLogChannel], SdLogImport]:
|
||||
imported = parse_sd_log(lines, reference_timestamp, limit=frame_limit)
|
||||
channels = {}
|
||||
|
||||
Reference in New Issue
Block a user