Quick app to list and test the sensors.
Probably miscoded, but hacked up as it is, it is doing something. With an added bonus of Orientation Sensor, tested on a train, reports only couple degrees variation between full stop and speeding on a straight track. And even that might be a consequence of the train's suspension.
Either way, orientation problem solved before it even started!