2 * Copyright © 2012 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
18 package org.altusmetrum.altoslib_5;
20 public interface AltosConfigValues {
21 /* set and get all of the dialog values */
22 public abstract void set_product(String product);
24 public abstract void set_version(String version);
26 public abstract void set_serial(int serial);
28 public abstract void set_altitude_32(int altitude_32);
30 public abstract void set_main_deploy(int new_main_deploy);
32 public abstract int main_deploy() throws AltosConfigDataException;
34 public abstract void set_apogee_delay(int new_apogee_delay);
36 public abstract int apogee_delay() throws AltosConfigDataException;
38 public abstract void set_apogee_lockout(int new_apogee_lockout);
40 public abstract int apogee_lockout() throws AltosConfigDataException;
42 public abstract void set_radio_frequency(double new_radio_frequency);
44 public abstract double radio_frequency() throws AltosConfigDataException;
46 public abstract void set_radio_calibration(int new_radio_calibration);
48 public abstract int radio_calibration() throws AltosConfigDataException;
50 public abstract void set_radio_enable(int new_radio_enable);
52 public abstract int radio_enable();
54 public abstract void set_callsign(String new_callsign);
56 public abstract String callsign();
58 public abstract void set_telemetry_rate(int new_telemetry_rate);
60 public abstract int telemetry_rate() throws AltosConfigDataException;
62 public abstract void set_flight_log_max(int new_flight_log_max);
64 public abstract void set_flight_log_max_enabled(boolean enable);
66 public abstract int flight_log_max() throws AltosConfigDataException;
68 public abstract void set_flight_log_max_limit(int flight_log_max_limit);
70 public abstract void set_ignite_mode(int new_ignite_mode);
72 public abstract int ignite_mode();
74 public abstract void set_pad_orientation(int new_pad_orientation);
76 public abstract int pad_orientation();
78 public abstract void set_pyros(AltosPyro[] new_pyros);
80 public abstract AltosPyro[] pyros() throws AltosConfigDataException;
82 public abstract void set_pyro_firing_time(double new_pyro_firing_time);
84 public abstract double pyro_firing_time() throws AltosConfigDataException;
86 public abstract int aprs_interval() throws AltosConfigDataException;
88 public abstract void set_aprs_interval(int new_aprs_interval);
90 public abstract int aprs_ssid() throws AltosConfigDataException;
92 public abstract void set_aprs_ssid(int new_aprs_ssid);
94 public abstract int beep() throws AltosConfigDataException;
96 public abstract void set_beep(int new_beep);
98 public abstract int tracker_motion() throws AltosConfigDataException;
100 public abstract void set_tracker_motion(int tracker_motion);
102 public abstract int tracker_interval() throws AltosConfigDataException;
104 public abstract void set_tracker_interval(int tracker_motion);