Class: ComtecDR::UdatAnalyzer
- Inherits:
-
Object
- Object
- ComtecDR::UdatAnalyzer
- Defined in:
- lib/comtec-dr/udat_analyzer.rb
Constant Summary collapse
- LOG_PATTERN =
/ (?:[AV]) (?<lat>[\d.]*)(?<lat_sign>[NS]) (?<lon>[\d.]*)(?<lon_sign>[EW]) (?<speed>\d{4}) (?<jst>\d{12}) (?:\s+?) (?<time>\d{5}) (?<x_acceleration>[\d-]{1}\d{4}) (?<y_acceleration>[\d-]{1}\d{4}) (?<z_acceleration>[\d-]{1}\d{4}) /x
Class Method Summary collapse
Class Method Details
permalink .analyze(udat) ⇒ Object
[View source]
17 18 19 |
# File 'lib/comtec-dr/udat_analyzer.rb', line 17 def analyze udat udat.to_s.gsub(/[[:cntrl:]]/,"").scan(LOG_PATTERN) end |