Homework‎ > ‎

Where is North?

--Using the tutorial I developed an app which acts as a working compass.

-- It uses several new components. One of these is the Orientation sensor, which serves to set the orientation of the screen whenever the phone changes the orientation. The other main component is the Location Sensor which sets the phone's latitude and longitude.

--For the Orientation sensor we pull out a OrientationChanged block which uses the arguments azimuth, pitch and roll. We alter the azimuths argument by adding plus 90 (which is 0 to start). On the Location Sensor we simply set the label to the latitude and longitude.

All Blocks: