This project uses the OrientationSensor component's Azimuth property to display the current magnetic compass heading value and by rotating an ImageSprite 'dial' on a Canvas.
Component blocks:
⦁ Canvas
⦁ Clock
⦁ ImageSprite (2)
Language blocks:
⦁ Math +,/,floor,=
⦁ Control if
--
I'm not sure, if I understand the purpose of your example compared to this simple solution http://puravidaapps.com/snippets.php#2compass
Nice! I had not seen that. You ought to do a video to show it off :)
Getting declination from latitude, longitude, altitude and date and time might be a bit tricky with AI blocks.
I did a crude approximation for another project with C a few years ago.
I saw that iPhone comes with a compass app that compensates for declination by default.
We have some catching-up to do....
--
댓글 없음:
댓글 쓰기