4 ms·
I was tempted to add device orientation for mobile, but figured people might think it was an actual compass, and AFAIK support is a bit spotty.
by perilunar 3y ago
I was tempted to add device orientation for mobile, but figured people might think it was an actual compass, and AFAIK support is a bit spotty.
- defrost 3y agoIt's a challenge and it'll force you to ask what and why are you doing this for. There's "real life navigation" - these things matter at high and low latitudes, and near massive iron deposits such as Kursk, not so much elsewhere - although orienteering with magnetic compass only requires understanding of local deviations. There's also "teaching geodesy" - which might allow you to simulate changes of location etc. All of this, of course, goes beyond a simple exercise in inferface design and angles. I threw it in there in case you're looking for further coding exercises. I guess the remaining question is .. analog clock directions? Does the most recent generation need to be reminded to watch their six o'clock? [*] https://en.wikipedia.org/wiki/Kursk_Magnetic_Anomaly https://en.wikipedia.org/wiki/Kursk_Magnetic_Anomaly
- perilunar 3y ago> why are you doing this for Honestly, I just thought it would be an amusing way to convert temperature, and a subtle dig at people who don't use the correct units. I don't want people to use this as an actual compass, and get themselves lost because of it.
- defrost 3y agoThat's enough of a goal. > I don't want people to use this as an actual compass Hence the educational route option should you so choose. Of course anybody running this on a mobile device will have full GPS and maps available. Learning about reality is for those that want to navigate by actual compass and|or stars.
- pjc50 3y ago> device orientation for mobile On Google maps this is supposed to use the magnetometer to point the arrow in the correct direction, but it never works and nor does the stupid calibration phone-waving thing it asks you to do.
- krisoft 3y agoThat sounds like either a fault with your device or misplaced expectations. On my device the arrow points in approximately the correct orientation. (Plus minus ten-ish degrees.) If yours never work even to that level, even when you are away from magnetic sources then probably your device is faulty. (Do make sure you don’t have body worn magnets, or magnets in the phone case/holder of course.) If it works to the same approximation, but you are expecting it to be more accurate then you should choose a different tool for the job.
- krisoft 3y ago> figured people might think it was an actual compass So you were concerned that people might get confused, yet you choose to mix angular and temperature degrees in the same interface? An odd choice. I thought causing maximum confusion was the goal. (In a fun way, admitadly.)