Class: Gps::Nmea::Vtg

Inherits:
Sentence show all
Defined in:
lib/gps/nmea/vtg.rb

Instance Attribute Summary collapse

Attributes inherited from Sentence

#line

Instance Method Summary collapse

Methods inherited from Sentence

#checksum_valid?, date_part_to_str, #generate_checksum, #get_checksum, #has_coordinates?, #has_datetime?, #lat_dec, #lat_long_dec, #long_dec, parse, time_part_to_str, #to_h, #to_json

Constructor Details

#initialize(line) ⇒ Vtg

Returns a new instance of Vtg.



6
7
8
9
10
# File 'lib/gps/nmea/vtg.rb', line 6

def initialize(line)
  @line = line
  fill_parts
  fill_data
end

Instance Attribute Details

#magnetic_trackObject

Returns the value of attribute magnetic_track.



4
5
6
# File 'lib/gps/nmea/vtg.rb', line 4

def magnetic_track
  @magnetic_track
end

#speed_kmhObject

Returns the value of attribute speed_kmh.



4
5
6
# File 'lib/gps/nmea/vtg.rb', line 4

def speed_kmh
  @speed_kmh
end

#speed_knotsObject

Returns the value of attribute speed_knots.



4
5
6
# File 'lib/gps/nmea/vtg.rb', line 4

def speed_knots
  @speed_knots
end

#true_trackObject

Returns the value of attribute true_track.



4
5
6
# File 'lib/gps/nmea/vtg.rb', line 4

def true_track
  @true_track
end