--- Log opened Wed Jul 26 00:00:02 2017 00:13 -!- Celelibi [celelibi@par69-9-88-166-81-29.fbx.proxad.net] has joined #navit 01:48 -!- noradtux [~noradtux@2a02:2028:551:cc01:c973:4118:2fe8:1981] has quit [Ping timeout: 255 seconds] 01:52 -!- noradtux [~noradtux@port-22588.pppoe.wtnet.de] has joined #navit 05:06 -!- xenos1984 [~xenos1984@2001:bb8:2002:200:6651:6ff:fe53:a120] has joined #navit 08:12 -!- Navit [~Navit@www.v6.navit-project.org] has quit [Ping timeout: 240 seconds] 08:19 -!- Navit [~Navit@www.navit-project.org] has joined #navit 08:55 -!- t_ [2bfa9da6@gateway/web/freenode/ip.43.250.157.166] has joined #navit 08:55 #navit: < t_> hey 08:56 #navit: < t_> am having some trouble running navit on rpi 2 08:56 #navit: < t_> it shows maps but after 2-3 mins of launch it crashes 08:56 #navit: < t_> can anyone help me 09:21 -!- t_ [2bfa9da6@gateway/web/freenode/ip.43.250.157.166] has quit [Quit: Page closed] 12:05 -!- kaonit [cbbbf7c7@gateway/web/freenode/ip.203.187.247.199] has joined #navit 12:05 #navit: < kaonit> hi can anyone tell me the minimum RAM memory required for navit to run 12:05 #navit: < kaonit> ? 12:20 -!- gfthdfh [cbbbf7c7@gateway/web/freenode/ip.203.187.247.199] has joined #navit 12:21 -!- gfthdfh [cbbbf7c7@gateway/web/freenode/ip.203.187.247.199] has quit [Client Quit] 12:22 -!- kaonit [cbbbf7c7@gateway/web/freenode/ip.203.187.247.199] has quit [Ping timeout: 260 seconds] 12:39 -!- robertp [d9f3f0ac@gateway/web/freenode/ip.217.243.240.172] has joined #navit 13:22 -!- robertp [d9f3f0ac@gateway/web/freenode/ip.217.243.240.172] has quit [] 14:40 -!- xenos1984 [~xenos1984@2001:bb8:2002:200:6651:6ff:fe53:a120] has quit [Quit: Leaving.] 15:01 -!- xenos1984 [~xenos1984@22-164-191-90.dyn.estpak.ee] has joined #navit 15:13 #navit: <@KaZeR> hi there 15:34 -!- noradtux [~noradtux@port-22588.pppoe.wtnet.de] has quit [Ping timeout: 240 seconds] 15:34 -!- noradtux [~noradtux@2a02:2028:62b:c401:2900:46ea:d5a5:e65b] has joined #navit 16:40 -!- jfitie [5c6e9fbe@gateway/web/freenode/ip.92.110.159.190] has joined #navit 16:40 #navit: < jfitie> hi 16:40 #navit: < jfitie> @kazer: got a sec? 16:43 #navit: < jfitie> my suspicion about pitch needed a correction for display resolution was correct 16:43 #navit: < jfitie> p=ROUND(20*SQRT(320*240)/SQRT(x*y)) seems to solve the issue 16:44 #navit: < jfitie> pr at https://github.com/navit-gps/navit/pull/303; screenshots @ https://github.com/navit-gps/navit/pull/303#issuecomment-318112067 16:45 #navit: < jfitie> now to change the pseudocode to some real code :-) 16:46 #navit: < jfitie> as you can see in the screenshots, which all have a different resolution and aspect ratio, using the 'corrected pitch' makes them all look the same 16:46 #navit: < jfitie> ps. didn't get the screenshots to work on cicleci, so did this on my local machine 16:58 #navit: <@KaZeR> thanks jfitie looking at it. I'll also look at fixing the screenshots on CI 17:01 #navit: <@KaZeR> jfitie: since you dug into the transformation code, it would be great if you could improve the relevant code documentation with what you learned (eg. Doxygen headers, etc) 17:02 #navit: <@KaZeR> so it looks like the PR is currently more about discussion than merging, correct ? 17:04 #navit: < jfitie> WIP, so working on it :-) .. Just did another commit, care to take a quick look? The fix could be as simple as this; https://github.com/navit-gps/navit/pull/303/files#diff-72d126e3125c51bb250ef2bcbe494d87R3431 17:04 #navit: < jfitie> What are your thoughts after looking at the screen shots? 17:05 #navit: <@KaZeR> they look convincing 17:05 #navit: <@KaZeR> also, why restrict this to android? 17:09 #navit: < jfitie> True, we could use this as a default 17:11 #navit: < jfitie> ok -- https://github.com/navit-gps/navit/pull/303/files 17:12 #navit: < jfitie> darn.. all this work for just one changed line ... :-p 17:18 #navit: < jfitie> We'll see if this compiles, and if it does I'll re-run my tests without correcting the pitch (use default value of 20) and see if the results are the same as those in the pr 17:38 #navit: <@KaZeR> haha yeah sometimes fixing just one line can take so much time.. but it also can improve things a lot! 17:50 #navit: < jfitie> hmmmm 17:50 #navit: < jfitie> almost, but not quite 17:50 #navit: < jfitie> https://github.com/navit-gps/navit/pull/303#issuecomment-318131046 -- at least they look the same, but the angle is different 18:00 #navit: <@KaZeR> i'm not sure what the last 3 screenshots are trying to highlight 18:01 #navit: <@KaZeR> some pitch values also only make sense at lower zoom level, otherwise the map is hard to read 18:03 #navit: < jfitie> The last 3 screenshots are runs with this change https://github.com/navit-gps/navit/pull/303/files . I was expecting results similar to the first series of screen shots. Same angle for all resolutions. Instead, the angle is the same for all 3, but the angle is different from the first series of screenshots. Manually setting pitch=20 in navit.xml gives the same results as the first series. 18:04 #navit: < jfitie> in my code 'this->pitch=round(20*sqrt(320*240)/sqrt(this->root.w*this->root.h));' Should return 20 for a resolution of 320x240... it does not... 18:05 #navit: < jfitie> I've turned on debugging, and this->root.w=240 and this->root.h=320 .. So round(20*sqrt(320*240)/sqrt(240*320)) should indeed be 20 --> https://www.wolframalpha.com/input/?i=round(20*sqrt(320*240)%2Fsqrt(240*320)) 18:15 #navit: < jfitie> mmm.. navit.log: 'debug:gui_internal:gui_internal_apply_config:w=240 h=320' .. quick test of ' printf ("%.0f\n", round((20*sqrt(320*240)/sqrt(240*320))) ); ' returns 20 as expected ... 18:28 #navit: < jfitie> Let's see what happens using the debug log; https://github.com/navit-gps/navit/pull/303/files#diff-72d126e3125c51bb250ef2bcbe494d87R3431 18:53 #navit: < jfitie> debug:gui_internal:gui_internal_new:w=0 h=0 pitch=-2147483648 18:55 #navit: < jfitie> I'll probably move the logic to gui_internal_resize 19:14 #navit: < jfitie> or not, as that won't work :-).... https://github.com/navit-gps/navit/pull/303#issuecomment-318153224 19:16 #navit: <@KaZeR> pitch=-2147483648 : looks like a type issue (float/int) 19:17 #navit: < jfitie> it's because window size is not set yet and both w and h are 0 .. 19:17 #navit: < jfitie> not really sure yet how to fix this 19:22 #navit: < jfitie> -2147483648: https://stackoverflow.com/questions/3986795/what-is-the-result-of-casting-float-inf-inf-and-nan-to-integer-in-c 19:22 #navit: < jfitie> /0 :-) 19:25 #navit: <@KaZeR> haha indeed 20:04 -!- ilovekiruna [~ilovekiru@ip2505a0ef.dynamic.kabel-deutschland.de] has quit [Quit: Konversation terminated!] 20:15 -!- ilovekiruna [~Patrick@ip2505a0ef.dynamic.kabel-deutschland.de] has joined #navit 20:27 #navit: < jfitie> @kazer how do I get the window x and y sizes inside transform_setup_matrix (transform.c)? 20:36 #navit: < jfitie> https://github.com/navit-gps/navit/pull/303/files#diff-566f77ab83fc5b075f55c56579774d23R815 20:56 #navit: < jfitie> new url: https://github.com/navit-gps/navit/pull/303/files#diff-566f77ab83fc5b075f55c56579774d23R90 20:59 -!- jfitie [5c6e9fbe@gateway/web/freenode/ip.92.110.159.190] has quit [Quit: Page closed] 23:03 -!- xenos1984 [~xenos1984@22-164-191-90.dyn.estpak.ee] has quit [Quit: Leaving.] 23:20 -!- Horwitz [~mich1@p200300800E785700022268FFFE64E7C4.dip0.t-ipconnect.de] has quit [Ping timeout: 255 seconds] 23:24 -!- pmckinley [~Peter_McK@88-110-196-96.dynamic.dsl.as9105.com] has joined #navit 23:25 #navit: < pmckinley> Where's Michael? 23:25 #navit: < pmckinley> Hey @KaZer 23:33 -!- Horwitz [~mich1@p200300800E58FA00022268FFFE64E7C4.dip0.t-ipconnect.de] has joined #navit 23:33 -!- mode/#navit [+o Horwitz] by ChanServ 23:38 #navit: <@KaZeR> hey pmckinley ! --- Log closed Thu Jul 27 00:00:04 2017