- void process_line(String line) {
- if (line == null) {
- abort();
- return;
- }
- if (line.equals("all finished")) {
- if (serial_line != null)
- update_ui();
- return;
- }
- if (pyro < npyro.get()) {
- if (pyros == null)
- pyros = new AltosPyro[npyro.get()];
-
- try {
- pyros[pyro] = new AltosPyro(pyro, line);
- } catch (ParseException e) {
- System.out.printf ("pyro parse failed %s\n", line);
- }
- ++pyro;
- return;
- }
- get_int(line, "serial-number", serial);
- get_int(line, "log-format", log_format);
- get_int(line, "Main deploy:", main_deploy);
- get_int(line, "Apogee delay:", apogee_delay);
- get_int(line, "Apogee lockout:", apogee_lockout);
- get_int(line, "Radio channel:", radio_channel);
- get_int(line, "Radio cal:", radio_calibration);
- get_int(line, "Max flight log:", flight_log_max);
- get_int(line, "Ignite mode:", ignite_mode);
- get_int(line, "Pad orientation:", pad_orientation);
- get_int(line, "Radio setting:", radio_setting);
- if (get_int(line, "Frequency:", radio_frequency))
- if (radio_frequency.get() < 0)
- radio_frequency.set(434550);
- get_int(line, "Radio enable:", radio_enable);
- get_int(line, "Storage size:", storage_size);
- get_int(line, "Storage erase unit:", storage_erase_unit);
- get_int(line, "flight", stored_flight);
- get_string(line, "Callsign:", callsign);
- get_string(line,"software-version", version);
- get_string(line,"product", product);
- get_int(line, "Pyro-count:", npyro);
- }
-