pgAccelerometer and pgCompass directives - rev 1