diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-10-15 00:36:25 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-10-15 00:36:25 +0200 |
commit | 93a10edb6fef5d127d6395d0af5e238c26a2f2ca (patch) | |
tree | 04ad7ff671a355a7dde448acfa08418aec51c411 /sensors | |
parent | bfd0f75932b4550ff5244c5f5db25b78003a44e0 (diff) | |
download | microcopterd-93a10edb6fef5d127d6395d0af5e238c26a2f2ca.tar.bz2 |
ITG3200: make scale factor constant
Diffstat (limited to 'sensors')
-rw-r--r-- | sensors/gyroscope/itg3200.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sensors/gyroscope/itg3200.vala b/sensors/gyroscope/itg3200.vala index ac3e2f0..9c33463 100644 --- a/sensors/gyroscope/itg3200.vala +++ b/sensors/gyroscope/itg3200.vala @@ -17,7 +17,7 @@ public class ITG3200 : I2CDevice, Gyroscope { public int[] rate { get; set; } /* ITG3200 14.375 LSBs per °/sec in radians */ - private static double scale_factor = (1.0 / 14.375) * (180.0 / Math.PI); + private static const double scale_factor = (1.0 / 14.375) * (180.0 / Math.PI); public ITG3200(uint8 dev, uint8 addr = 0x68) throws I2CError { setup(dev, addr); |