diff options
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; } } |