- nsat = h.getInt("nsat", nsat);
- locked = h.getBoolean("locked", locked);
- connected = h.getBoolean("connected", connected);
- lat = h.getDouble("lat", lat);
- lon = h.getDouble("lon", lon);
- alt = h.getDouble("alt", alt);
- year = h.getInt("year", year);
- month = h.getInt("month", month);
- day = h.getInt("day", day);
- hour = h.getInt("hour", hour);
- minute = h.getInt("minute", minute);
- second = h.getInt("second", second);
-
- ground_speed = h.getDouble("ground_speed", ground_speed);
- course = h.getInt("course", course);
- climb_rate = h.getDouble("climb_rate", climb_rate);
- pdop = h.getDouble("pdop", pdop);
- hdop = h.getDouble("hdop", hdop);
- vdop = h.getDouble("vdop", vdop);
- h_error = h.getDouble("h_error", h_error);
- v_error = h.getDouble("v_error", v_error);
- cc_gps_sat = AltosGPSSat.array(h.getString("cc_gps_sat", null));
+ nsat = j.get_int("nsat", nsat);
+ locked = j.get_boolean("locked", locked);
+ connected = j.get_boolean("connected", connected);
+ lat = j.get_double("lat", lat);
+ lon = j.get_double("lon", lon);
+ alt = j.get_double("alt", alt);
+ year = j.get_int("year", year);
+ month = j.get_int("month", month);
+ day = j.get_int("day", day);
+ hour = j.get_int("hour", hour);
+ minute = j.get_int("minute", minute);
+ second = j.get_int("second", second);
+
+ ground_speed = j.get_double("ground_speed", ground_speed);
+ course = j.get_int("course", course);
+ climb_rate = j.get_double("climb_rate", climb_rate);
+ pdop = j.get_double("pdop", pdop);
+ hdop = j.get_double("hdop", hdop);
+ vdop = j.get_double("vdop", vdop);
+ h_error = j.get_double("h_error", h_error);
+ v_error = j.get_double("v_error", v_error);
+ cc_gps_sat = AltosGPSSat.json_array(j.get("cc_gps_sat"));