Module: GPS_PVT::RTCM3::Packet::GPS_Ephemeris
- Defined in:
- lib/gps_pvt/rtcm3.rb
Constant Summary collapse
- KEY2IDX =
{:svid => 1, :WN => 2, :URA_index => 3, :dot_i0 => 5, :iode => 6, :t_oc => 7, :a_f2 => 8, :a_f1 => 9, :a_f0 => 10, :iodc => 11, :c_rs => 12, :delta_n => 13, :M0 => 14, :c_uc => 15, :e => 16, :c_us => 17, :sqrt_A => 18, :t_oe => 19, :c_ic => 20, :Omega0 => 21, :c_is => 22, :i0 => 23, :c_rc => 24, :omega => 25, :dot_Omega0 => 26, :t_GD => 27, :SV_health => 28}
Instance Method Summary collapse
Instance Method Details
#params ⇒ Object
314 315 316 317 318 319 |
# File 'lib/gps_pvt/rtcm3.rb', line 314 def params # TODO WN is truncated to 0-1023 res = Hash[*(KEY2IDX.collect{|k, i| [k, self[i][0]]}.flatten(1))] res[:fit_interval] = (self[29][0] != 0) res end |