280 likes | 492 Views
Building Sensor-based Apps Windows Phone Windows Store Windows Desktop. Tim Binkley-Jones manning.com / binkley. Sky Map for Windows Phone.
E N D
Building Sensor-based Apps Windows PhoneWindows StoreWindows Desktop Tim Binkley-Jones manning.com/binkley
Sky Map for Windows Phone SkyMap is an amazing planetarium for your windows phone. It enables you to point your phone at the sky and see what stars, constellations, planets or deep space objects are out there in real time.
HERE City Lens Simply hold up your phone as though taking a photo, and HERE City Lens overlays the best shops, restaurants and points of interest right on your display.
Windows 8 Windows Runtime Windows Store Windows Desktop Windows What??? Windows RT
Windows Phone 8 both and a slimmed down version of Windows 8 is an upgrade of Windows Phone 7
Image taken from the MSDN article “Windows Phone API reference” http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff626516(v=vs.105).aspx
Taken from the MSDN documentation for the Windows Runtime Accelerometer class
Taken from the MSDN documentation for the Windows Runtime Geolocator class
Taken from the MSDN documentation for the Windows Runtime LightSensor class
Available Sensors • Camera, Microphone • Geolocator • LightSensor • Accelerometer, Gyrometer • Compass, Inclinometer, OrientationSensor
<PropertyGroup> <TargetPlatformVersion>8.0</TargetPlatformVersion> </PropertyGroup>
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\ .NETFramework\v4.5\Facades\System.Runtime.dll For more details, see the MSDN article titled “Managed desktop apps and Windows Runtime”
Accelerometer The acceleration along the each axis in g’s. publicsealedclassAccelerometerReading { publicdoubleAccelerationX { get; } publicdoubleAccelerationY { get; } publicdoubleAccelerationZ { get; } publicDateTimeOffset Timestamp { get; } }
Gyrometer The angular velocity, in degrees per second, about each axis. publicsealedclassGyrometerReading { publicdoubleAngularVelocityX { get; } publicdouble AngularVelocityY { get; } publicdouble AngularVelocityZ { get; } publicDateTimeOffset Timestamp { get; } }
Compass Heading - the angle between the magnetic field, and the direction the device is pointed publicsealedclassCompassReading { publicdouble HeadingMagneticNorth { get; } publicdouble? HeadingTrueNorth { get; } publicDateTimeOffset Timestamp { get; } }
Inclinometer and Orientation Sensor Rotation around each access publicsealedclassInclinometerReading { publicfloat PitchDegrees { get; } publicfloat RollDegrees { get; } publicfloat YawDegrees { get; } publicDateTimeOffset Timestamp { get; } } Rotation matrix and quaternion publicsealedclassOrientationSensorReading { publicSensorQuaternion Quaternion { get; } publicSensorRotationMatrix RotationMatrix { get; } publicDateTimeOffset Timestamp { get; } }
Real world point: (0, 10, 0) Relative point: (0, 10, 0)
Real world point: (0, 10, 0) Relative point: (-10, 0, 0)
Real world point: (0, 10, 0) Relative point: (-10, 0, 0)
Building Sensor-based Apps Windows PhoneWindows StoreWindows Desktop Tim Binkley-Jones manning.com/binkley