If I read you correctly, this is just expression of degrees with fractions vs. components. I have done this many times so it shouldn't be a problem. I'll look at this unless deniska has done this already...
Printable View
just updated the code with you changes and posted the new generic beta version at 0.4 release thread... it includes the most recent source code..
As far as DMS goes, you should be able to toggle lat/lon display to DMS by adding DMS=1 to the config.txt file
Feel free to improve it though... ;-)
@deniska
Using DMS=1 works fine
Now we can display the coordinates as DD,dddd° (without option DMS)
and DD° MM,mmm'(with option DMS=1)
The only thing missing now would be to display them as DD° MM' SS'' (degrees minutes seconds)
And of course to be able to add POIs directly in these formats with the "ADD POIs" function in MapThis!.
@MIB.42
Maybe You could help out here a little
@MIB.42
Thaks a lot.
Could you also implement the possibility to add POIs directly in these formats with the "ADD POIs" function in the MapThis! Menu(the one that pops up when you press start - Add POIs)?
I need some clarification here. May I ask :
- Why would you want to manually enter the long/lat values when MapThis fills that info out for you?
Also, I don't know if you are aware of this, but you can manually edit the _MY_POIS file in the _map directory.
The format for each line is : lon,lat,name,descr
I could make some changes, so that instead of the present :
65.432109877,-87.5432109,Name of the Place,Description of the Place
it could be
65°43'35",-87°54'47",Name of the Place,Description of the Place
... needless to say, both would be accepted...
?!
Deniska,
Here is the new code drop :
- New bigfont.png to replace dollar sign with degree
- Little font (msx) 'degree' related changes ( graphics.cpp or main.cpp )
- Change DMS format (0-2) and associtaed menus and displays to support dd.ddddd ddmm.mmmm and ddmmss
- Added ms_write_log function to enable logging. config.txt can have DEBUGLOG=1
- Added plenty of sanity checks in all attached cpp files including logging the problems ( if DEBUGLOG is set )
- display_message X button state clear
- prevent "stuck maps" if map preference coordinates are invalid
- HOLD button check for disabling joystick
Hi MIB.42
I am aware that I can edit the _MY_POIS file in the _map directory and that in fact is exactly what I want to do but I would like to be able to use different formats of entering the lat/lon values because I want to do some Geo Caching with MapThis!
When googling for Geo Caches I noticed that the lat/lon values where given in different values; someties they were given in DD.dddd°, sometimes in DD°MM.mmmm' and sometimes in DD°MM'SS''.
When Geo Caching you get some lat/lon values and start at the first solve some riddle and add the solution of the riddle to your second lat/lon value this will then be your next waypoint. This of course has to entered into _MY_POIS file in the _map directory to find the next riddle.
So to give you an example I will use these values for the DD.dddd° format: 52.5486111, -13.4194444
I would like to be able add this into the _MY_POIS file in three different formats.
DD.dddd° would be
52.5486111, -13.4194444
DD°MM.mmmm' would be
52.32.916667, -13.25.166667
DD°MM'SS'' would be
52°32'55'', -13° 25' 10''
Hope I could clarify everything now ;-)