diff options
| author | Bdale Garbee <bdale@gag.com> | 2013-05-16 00:36:23 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2013-05-16 00:36:23 -0600 | 
| commit | 02d111b1b53ef01fc6e9ab6c4bc60b8af1be0067 (patch) | |
| tree | 8356f4a019969ee99a45e264c87d38555cf316cc /altoslib/AltosTelemetryRecordSensor.java | |
| parent | 7a2e1f05adad990a6b161865267abf07ffec7a7e (diff) | |
| parent | 7699a55aed3a9a7daeb4c6a5a9a280f43edf455f (diff) | |
Merge branch 'branch-1.2' into debian
Diffstat (limited to 'altoslib/AltosTelemetryRecordSensor.java')
| -rw-r--r-- | altoslib/AltosTelemetryRecordSensor.java | 18 | 
1 files changed, 6 insertions, 12 deletions
diff --git a/altoslib/AltosTelemetryRecordSensor.java b/altoslib/AltosTelemetryRecordSensor.java index 319a91b3..e0e92c13 100644 --- a/altoslib/AltosTelemetryRecordSensor.java +++ b/altoslib/AltosTelemetryRecordSensor.java @@ -15,7 +15,7 @@   * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.   */ -package org.altusmetrum.AltosLib; +package org.altusmetrum.altoslib_1;  public class AltosTelemetryRecordSensor extends AltosTelemetryRecordRaw { @@ -36,10 +36,8 @@ public class AltosTelemetryRecordSensor extends AltosTelemetryRecordRaw {  	int	accel_plus_g;  	int	accel_minus_g; -	int	rssi; - -	public AltosTelemetryRecordSensor(int[] in_bytes, int in_rssi) { -		super(in_bytes); +	public AltosTelemetryRecordSensor(int[] in_bytes, int rssi) { +		super(in_bytes, rssi);  		state         = uint8(5);  		accel         = int16(6); @@ -57,8 +55,6 @@ public class AltosTelemetryRecordSensor extends AltosTelemetryRecordRaw {  		ground_accel  = int16(26);  		accel_plus_g  = int16(28);  		accel_minus_g = int16(30); - -		rssi	      = in_rssi;  	}  	public AltosRecord update_state(AltosRecord prev) { @@ -86,9 +82,9 @@ public class AltosTelemetryRecordSensor extends AltosTelemetryRecordRaw {  			next.main = AltosRecord.MISSING;  		} -		next.acceleration = acceleration / 16.0; -		next.speed = speed / 16.0; -		next.height = height; +		next.kalman_acceleration = acceleration / 16.0; +		next.kalman_speed = speed / 16.0; +		next.kalman_height = height;  		next.ground_pres = ground_pres;  		if (type == packet_type_TM_sensor) { @@ -101,8 +97,6 @@ public class AltosTelemetryRecordSensor extends AltosTelemetryRecordRaw {  			next.accel_minus_g = AltosRecord.MISSING;  		} -		next.rssi = rssi; -  		next.seen |= AltosRecord.seen_sensor | AltosRecord.seen_temp_volt;  		return next;  | 
