Sha256: 5ded13c0778380f8bb723496112a2b1a79fb6d2454c7fc4567a6ec88784c4785
Contents?: true
Size: 294 Bytes
Versions: 10
Compression:
Stored size: 294 Bytes
Contents
class Ecu class SignalList DBCREGEXP = / SG_ ([A-Z_0-9]+) : .*/ def self.from_dbc(file_path) new(File.open(file_path, "rb").read.scan(DBCREGEXP).map do |name| Ecu::Signal.new(name: name.first) end.reject { |signal| signal.name =~ /TA|TPCI/ }) end end end
Version data entries
10 entries across 10 versions & 1 rubygems