diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-06-15 22:56:00 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-06-15 22:56:00 +0200 |
commit | 8a08b9dce9cfc161494ddb07a1c979c7796780ff (patch) | |
tree | e86e8a83212c617da44e1b9aed480fe6b50374af /sensors/gyroscope.vala | |
parent | 626580d3a16d01f3ba5481d291c4c0c844ef4c46 (diff) | |
download | microcopterd-8a08b9dce9cfc161494ddb07a1c979c7796780ff.tar.bz2 |
restructure code
it is now loading its components from plugins
Diffstat (limited to 'sensors/gyroscope.vala')
-rw-r--r-- | sensors/gyroscope.vala | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sensors/gyroscope.vala b/sensors/gyroscope.vala index 165df73..8cdc0cd 100644 --- a/sensors/gyroscope.vala +++ b/sensors/gyroscope.vala @@ -14,5 +14,16 @@ */ public interface Gyroscope : Device { - public abstract void get_data(out int16 x, out int16 y, out int16 z) throws Error; +#if 0 + double[] rate = {0.0, 0.0, 0.0}; + int[] zero = {0, 0, 0}; + long[] sample = {0, 0, 0}; + double smoothFactor = 1.0; + double scaleFactor = 0.0; + double heading = 0.0; + ulong gyroLastMesuredTime = 0; +#endif + public abstract void init(KeyFile cfg) throws Error; + public abstract void get_data(out int16 x, out int16 y, out int16 z) throws I2CError; + public abstract int[] rate { get; set; } } |