diff options
author | Bdale Garbee <bdale@gag.com> | 2017-08-12 00:59:03 -0400 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2017-08-12 00:59:03 -0400 |
commit | 59c6167b9f1e9de30455af1632e9a0b65d64ad63 (patch) | |
tree | d27e4b3df53300081aa6ac0a30820c58a1c968ef /altoslib/AltosSensorMetrum.java | |
parent | 41eedf88751910ea9c0a299444fbac769edb8427 (diff) | |
parent | fccfa54bb3b746cecfcdc1fd497cf736bbfe3ef3 (diff) |
Merge branch 'branch-1.8' into debian
Diffstat (limited to 'altoslib/AltosSensorMetrum.java')
-rw-r--r-- | altoslib/AltosSensorMetrum.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/altoslib/AltosSensorMetrum.java b/altoslib/AltosSensorMetrum.java index cb163911..e01d57cc 100644 --- a/altoslib/AltosSensorMetrum.java +++ b/altoslib/AltosSensorMetrum.java @@ -16,7 +16,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.altoslib_11; +package org.altusmetrum.altoslib_12; import java.util.concurrent.TimeoutException; @@ -53,12 +53,12 @@ class AltosSensorMetrum { } } - static public void update_state(AltosState state, AltosLink link, AltosConfigData config_data) throws InterruptedException { + static public void provide_data(AltosDataListener listener, AltosLink link) throws InterruptedException { try { AltosSensorMetrum sensor_metrum = new AltosSensorMetrum(link); - state.set_battery_voltage(AltosConvert.mega_battery_voltage(sensor_metrum.v_batt)); - state.set_apogee_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_a)); - state.set_main_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_m)); + listener.set_battery_voltage(AltosConvert.mega_battery_voltage(sensor_metrum.v_batt)); + listener.set_apogee_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_a)); + listener.set_main_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_m)); } catch (TimeoutException te) { } } |