.battp.textContent = Math.round(g.batt_remaining_pct);

      // mode / armed
      if (typeof g.mode === "string" && qs.mode) qs.mode.textContent = g.mode;
      if (typeof g.armed === "boolean" && qs.armed) qs.armed.textContent = g.armed ? "Yes" : "No";

      // gps
      if (qs.gps && (g.gps_fix_name || Number.isFinite(g.gps_fix_type) || Number.isFinite(g.gps_satellites))) {
        const fix = g.gps_fix_name || (Number.isFinite(g.gps_fix_type) ? `fix ${g.gps_fix_type}` : "—");
        const sats = Nu