Class: Gps::Nmea::Gsa

Inherits:
Sentence show all
Defined in:
lib/gps/nmea/gsa.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) ⇒ Gsa

Returns a new instance of Gsa.



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

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

Instance Attribute Details

#forcedObject

Returns the value of attribute forced.



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

def forced
  @forced
end

#hdopObject

Returns the value of attribute hdop.



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

def hdop
  @hdop
end

#modeObject

Returns the value of attribute mode.



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

def mode
  @mode
end

#pdopObject

Returns the value of attribute pdop.



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

def pdop
  @pdop
end

#sv_idObject

Returns the value of attribute sv_id.



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

def sv_id
  @sv_id
end

#vdopObject

Returns the value of attribute vdop.



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

def vdop
  @vdop
end