--- Log opened Fri Jul 29 00:00:01 2016 03:12 -!- jjelen [jjelen@nat/redhat/x-sxwsndbtlawcmprl] has joined #navit 06:26 -!- curious_ [~curious@91.225.158.68] has quit [Ping timeout: 258 seconds] 06:30 -!- curious_ [~curious@91.225.158.68] has joined #navit 11:41 -!- robertp [584bd4db@gateway/web/freenode/ip.88.75.212.219] has joined #navit 11:42 #navit: < robertp> hi 12:33 -!- jjelen [jjelen@nat/redhat/x-sxwsndbtlawcmprl] has quit [Ping timeout: 265 seconds] 12:35 #navit: < KaZeR> hi there 12:55 -!- jandegr [6d8302c6@gateway/web/freenode/ip.109.131.2.198] has joined #navit 13:17 #navit: < robertp> hi kazer 13:17 #navit: < robertp> hi jandegr 13:18 #navit: < jandegr> hi folks 13:21 #navit: < robertp> jandegr, do you know about the navit callbacks? 13:21 #navit: < jandegr> not really 13:23 #navit: < robertp> So you don't know what happens - or is needed - to get a attr_callback called...? 13:24 #navit: < jandegr> AFAIK whenever the attribute is updated the callbacks must be called as well 13:25 #navit: < robertp> and the callback notifies every listener? 13:30 #navit: < jandegr> that would make sense, but IIRC you had some error output from within command.c 13:32 #navit: < robertp> yes, i had. but since it occurs also with attr_nav_status I ignored this error message 13:40 #navit: < jandegr> I have used route_status with a periodical update, but see nothing special https://github.com/navit-gps/navit/blob/trunk/navit/route.c#L4157 13:45 #navit: < robertp> did you add the attr_route_status to navit? 13:50 #navit: < jandegr> no, it was there long before me :) 13:52 #navit: < robertp> mh... someone must be able to enlighten me. hrgmpf.. 13:54 #navit: < jandegr> U have link to your branch ? 13:55 #navit: < robertp> https://github.com/pohlinkzei/navit/tree/audio_attr_test 13:55 #navit: < robertp> navit.xml: https://github.com/pohlinkzei/Pi_MFD_Layout/blob/attr_test/navit.xml 14:00 #navit: < jandegr> which line in the xml is not working ? 14:06 #navit: < robertp> https://github.com/pohlinkzei/Pi_MFD_Layout/blob/attr_test/navit.xml#L233-L234 14:06 #navit: < robertp> and 14:06 #navit: < robertp> https://github.com/pohlinkzei/Pi_MFD_Layout/blob/attr_test/navit.xml#L233-L234 14:12 #navit: < jandegr> is this the one ? 14:12 #navit: < jandegr> 14:12 #navit: < jandegr> what does not work, the command or the enable expression ...??? 14:13 #navit: < robertp> the enable expression doenst care if the attr is 0 or 1 14:13 #navit: < robertp> once its set to 0 it stays there 14:13 #navit: < robertp> replace there with 0 14:15 #navit: < robertp> as long as its never set to 0 the button is invisible 14:46 #navit: < jandegr> maybe check if this gives output : https://github.com/navit-gps/navit/blob/trunk/navit/command.c#L1787 14:53 #navit: < robertp> ok. The error related to nav_status disappears, but the one for audio.playing stays. 14:54 #navit: < robertp> http://pastebin.com/bipPrhQY 14:57 #navit: < robertp> do I have to register the command anywhere 14:57 #navit: < robertp> ? 14:59 #navit: < jandegr> no, if all goes well it does it for you :) 15:04 #navit: < robertp> so what is the syntax for the command? audio itself seems to beright since it doesn't complain... 15:07 #navit: < jandegr> where are the audio attrs defined ? 15:10 #navit: < robertp> do you mean ATTR(playing) or struct attr* playing? 15:12 #navit: < jandegr> already found ATTR(playing) in attr_def.h :) 15:13 #navit: < jandegr> get_attr ? 15:14 #navit: < robertp> this question is a bit short, jandegr... 15:14 #navit: < robertp> the get/set/add_attr is copied from the vehicle code 15:15 #navit: < jandegr> does this ever say smth ? https://github.com/pohlinkzei/navit/blob/audio_attr_test/navit/audio.c#L46 15:15 #navit: < jandegr> ok, saw in the log, indeed 15:18 #navit: < jandegr> but there it stops 15:27 #navit: < robertp> not really: http://pastebin.com/f3N1Wn2X 15:29 #navit: < jandegr> is there a reason you changed this (vehicle reference) https://github.com/navit-gps/navit/blob/trunk/navit/vehicle.c#L219 15:30 #navit: < jandegr> after just a quick look, it seems if the attr is found, you don't return it 15:30 #navit: < jandegr> but insteead you return attr_generic_get_attr 15:31 #navit: < robertp> since all my attrs are similar status attrs i do not need to check the type 15:31 #navit: < robertp> i think 15:31 #navit: < jandegr> IMHO that would be if (!ret) ... 15:32 #navit: < jandegr> or just reuse the vehicle code as is :) 15:32 #navit: < jandegr> without type == attr_log_gpx_desc 15:33 #navit: < jandegr> is playing not specific to the audio object ? 15:39 #navit: < jandegr> kazer what do you think about it ? 15:41 #navit: < jandegr> osd_configuration==1 && audio.aplaying!=1 ?? 15:42 #navit: < jandegr> it does not seem to know 'aplaying' 15:46 #navit: < robertp> i adjusted it a bit but that didnt change a thing 15:49 #navit: < robertp> more like in vehicle.c 15:50 #navit: < jandegr> can you post it ? 15:53 #navit: < robertp> updated! 15:54 #navit: < jandegr> and you changed aplaying in xml as well ? 15:55 #navit: < robertp> yes, this was just for a test 15:56 #navit: < jandegr> but in player_stub you don't return anything? 15:56 #navit: < jandegr> !!! 15:56 #navit: < robertp> it returns the attr. 15:57 #navit: < jandegr> not really 15:57 #navit: < robertp> it returns ok or not ok 15:57 #navit: < robertp> the attr data is put into the attr 15:57 #navit: < robertp> from parameter 15:58 #navit: < jandegr> and you have to return an int, 1 on success 15:58 #navit: < jandegr> I don't see it, but it can be me :) 16:00 #navit: < robertp> 1 is success. 16:02 #navit: < jandegr> https://github.com/navit-gps/navit/blob/trunk/navit/vehicle/demo/vehicle_demo.c#L137 16:10 #navit: < jandegr> dbg(lvl_error, "Don't know what to do with ATTR type %s\n", attr_to_name(attr->type)); 16:11 #navit: < jandegr> there you would return 0 16:11 #navit: < jandegr> (now 1) 16:11 #navit: < jandegr> int ret = 0; 16:11 #navit: < jandegr> for all the others 16:11 #navit: < jandegr> that would be 1 I suppose 16:13 #navit: < jandegr> AFAIK change 0 to 1 and 1 to 0 and it is done :) 16:16 #navit: < robertp> yes, i got it. 16:17 #navit: < robertp> i have a different errorneus behaviour. thanks so far. 16:17 #navit: < jandegr> drumroll...... 16:24 #navit: < robertp> http://pastebin.com/DsUk9nN7 16:30 #navit: < robertp> attr_search doesnt return my attr_playing. 16:33 #navit: < jandegr> but it looks like the command thingy error is solved... 16:33 #navit: < robertp> it is. 16:33 #navit: < robertp> but enough for today. thank you very much. 16:34 #navit: < jandegr> can you update your code on github ?? 16:34 #navit: < robertp> sure 16:36 #navit: < robertp> done 16:37 #navit: < jandegr> dbg(lvl_debug, "@ttr %i,status %i\n", stub->aplaying, stub->playing); 16:39 #navit: < robertp> stub->aplaying is a workaround since the attr_playing was never found by attr_search. I'll remove the aplaying asap 16:43 #navit: < jandegr> good luck with it :) 16:43 -!- jandegr [6d8302c6@gateway/web/freenode/ip.109.131.2.198] has quit [Quit: Page closed] 16:50 -!- robertp [584bd4db@gateway/web/freenode/ip.88.75.212.219] has quit [Ping timeout: 250 seconds] 19:18 -!- Horwitz [~mich1@p200300800E2A7A00022268FFFE64E7C4.dip0.t-ipconnect.de] has quit [Ping timeout: 258 seconds] 19:31 -!- Horwitz [~mich1@p200300800E7F1400022268FFFE64E7C4.dip0.t-ipconnect.de] has joined #navit 19:31 -!- mode/#navit [+o Horwitz] by ChanServ 20:41 #navit: < Navit> The following compiles failed: http://download.navit-project.org/logs/navit/android_armv5te/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/src/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/openmoko/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/win32/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/n800/svn/navit-svn-6731.failed http://download.navit-project 20:41 #navit: < Navit> it-svn-6731.failed http://download.navit-project.org/logs/navit/android_x86/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/tomtom/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/iphone/svn/navit-svn-6731.failed 20:41 #navit: < Navit> See compile results history at http://download.navit-project.org/logs/navit/stats.html 21:41 #navit: < Navit> The following compiles failed: http://download.navit-project.org/logs/navit/android_armv5te/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/src/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/openmoko/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/win32/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/n800/svn/navit-svn-6731.failed http://download.navit-project 21:41 #navit: < Navit> it-svn-6731.failed http://download.navit-project.org/logs/navit/android_x86/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/tomtom/svn/navit-svn-6731.failed http://download.navit-project.org/logs/navit/iphone/svn/navit-svn-6731.failed 21:41 #navit: < Navit> See compile results history at http://download.navit-project.org/logs/navit/stats.html --- Log closed Sat Jul 30 00:00:03 2016