projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-eeprom: Add easy motor support
[fw/altos]
/
altoslib
/
AltosMma655x.java
diff --git
a/altoslib/AltosMma655x.java
b/altoslib/AltosMma655x.java
index c009b8209b97e82dcda1430d0e98f789f915b621..1a730c11780bd0de5533c6de8d5619f87f949977 100644
(file)
--- a/
altoslib/AltosMma655x.java
+++ b/
altoslib/AltosMma655x.java
@@
-55,7
+55,7
@@
public class AltosMma655x implements Cloneable {
int accel = mma655x.accel;
if (cal_data.mma655x_inverted)
accel = 4095 - accel;
int accel = mma655x.accel;
if (cal_data.mma655x_inverted)
accel = 4095 - accel;
- if (cal_data.pad_orientation ==
1
)
+ if (cal_data.pad_orientation ==
AltosLib.AO_PAD_ORIENTATION_ANTENNA_DOWN
)
accel = 4095 - accel;
listener.set_acceleration(cal_data.acceleration(accel));
}
accel = 4095 - accel;
listener.set_acceleration(cal_data.acceleration(accel));
}