summaryrefslogtreecommitdiff
path: root/altoslib/AltosState.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-07 22:25:17 -0700
committerKeith Packard <keithp@keithp.com>2014-06-07 22:30:26 -0700
commitb33de8ba1e48d8ad0cb78f1c5692bb81da916080 (patch)
treeb5c3d17ebaef22bd25ca85c897187102ae213539 /altoslib/AltosState.java
parent6950506beacb1bcd5b8e54c3935174cf800e9aed (diff)
altoslib: Recover battery voltage from TeleGPS configuration packet
TeleGPS stuffs battery voltage in the apogee_delay slot of the configuration packet. Pull it out from there and stick it into the current state. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosState.java')
-rw-r--r--altoslib/AltosState.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/altoslib/AltosState.java b/altoslib/AltosState.java
index ef3a0976..7871da77 100644
--- a/altoslib/AltosState.java
+++ b/altoslib/AltosState.java
@@ -959,11 +959,14 @@ public class AltosState implements Cloneable {
this.device_type = device_type;
}
- public void set_config(int major, int minor, int apogee_delay, int main_deploy, int flight_log_max) {
- config_major = major;
- config_minor = minor;
+ public void set_flight_params(int apogee_delay, int main_deploy) {
this.apogee_delay = apogee_delay;
this.main_deploy = main_deploy;
+ }
+
+ public void set_config(int major, int minor, int flight_log_max) {
+ config_major = major;
+ config_minor = minor;
this.flight_log_max = flight_log_max;
}