projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a315b20
)
altos: minor type in comment about accel correction
author
Keith Packard
<keithp@keithp.com>
Tue, 9 Aug 2011 00:46:04 +0000
(17:46 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 9 Aug 2011 00:46:04 +0000
(17:46 -0700)
Kurt Roeckx found a typo in the equations describing how the
accelerometer is corrected by the 5V reference measurement.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_sample.c
patch
|
blob
|
history
diff --git
a/src/ao_sample.c
b/src/ao_sample.c
index 88ba58c5e9349d28e5912dbcadff4eea5baea887..b2b8e9f63ff662385054b6a904797f38e6c77ce9 100644
(file)
--- a/
src/ao_sample.c
+++ b/
src/ao_sample.c
@@
-139,7
+139,7
@@
ao_sample(void)
*
* ao_sample_accel 32767
* = ------------ * ------------
- * 327
3
7 ao_accel_ref
+ * 327
6
7 ao_accel_ref
*
* Multiply through by 32767:
*