projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdbc29d
)
altoslib: Fix original telemetry sensor packet parsing
author
Keith Packard
<keithp@keithp.com>
Sun, 27 Oct 2019 17:24:52 +0000
(10:24 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 27 Oct 2019 17:26:30 +0000
(10:26 -0700)
ground_pres is at byte 24, ground_accel at byte 26. These were flipped
around.
Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosTelemetrySensor.java
patch
|
blob
|
history
diff --git
a/altoslib/AltosTelemetrySensor.java
b/altoslib/AltosTelemetrySensor.java
index 2219088a07fc133fd84067743adfea467562c04c..c0a5e9e34e7c3bee6d2b263662b3c2d5f9468302 100644
(file)
--- a/
altoslib/AltosTelemetrySensor.java
+++ b/
altoslib/AltosTelemetrySensor.java
@@
-32,8
+32,8
@@
public class AltosTelemetrySensor extends AltosTelemetryStandard {
int speed() { return int16(20); }
int height_16() { return int16(22); }
- int ground_
accel
() { return int16(24); }
- int ground_
pres
() { return int16(26); }
+ int ground_
pres
() { return int16(24); }
+ int ground_
accel
() { return int16(26); }
int accel_plus_g() { return int16(28); }
int accel_minus_g() { return int16(30); }