Hi,

sorry for being absent these last days. the zkv500 is now repaired (see attached patch) at least for turnpoint mode. I'm quite sure there will have problem some problems with route management, I haven't tested yet, but I'll do this week-end.

I've also fixed the screen refresh frequency, which is now more regular.

if someone can commit this patch, I'll be thankfull.

best regards
seb
Index: Aircraft/Instruments-3d/zkv500/MainScreens.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/Instruments-3d/zkv500/MainScreens.nas,v
retrieving revision 1.6
diff -r1.6 MainScreens.nas
220c220
< 	crs_deviation = gps_wp.getNode("leg-course-deviation-deg").getValue();
---
> 	crs_deviation = me.waypoint.getNode("course-deviation-deg").getValue();
239,240c239,240
< 	    gps_wp.getNode("leg-course-deviation-deg").getValue(), 
< 	    gps_wp.getNode("leg-course-error-nm").getValue() * dist_conv[0][dist_unit],
---
> 	    me.waypoint.getNode("course-deviation-deg").getValue(), 
> 	    me.waypoint.getNode("course-error-nm").getValue() * dist_conv[0][dist_unit],
Index: Aircraft/Instruments-3d/zkv500/TurnpointScreens.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/Instruments-3d/zkv500/TurnpointScreens.nas,v
retrieving revision 1.4
diff -r1.4 TurnpointScreens.nas
32c32
< 	    gps_wp.getNode("wp[1]/name").setValue(bookmark.getNode("name").getValue());
---
> 	    gps_wp.getNode("wp[1]/name",1).setValue(bookmark.getNode("name").getValue());
34c34
< 	    gps_wp.getNode("wp[1]/waypoint-type").setValue(bookmark.getNode("waypoint-type").getValue());
---
> 	    gps_wp.getNode("wp[1]/waypoint-type",1).setValue(bookmark.getNode("waypoint-type").getValue());
Index: Aircraft/Instruments-3d/zkv500/ZKV500.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/Instruments-3d/zkv500/ZKV500.nas,v
retrieving revision 1.8
diff -r1.8 ZKV500.nas
5a6
> var refresh_timer = 0; #avoid multiple settimers
140c141,142
< var refresh_display = func() { #refresh displayed lines, settimer if necessary
---
> var refresh_display = func(forced = 1) { #refresh displayed lines, settimer if necessary
>     if (!forced) refresh_timer -= 1;
142c144,147
<     if (isOn and 0 < displayed_screen < 5 ) settimer(func { refresh_display(); }, freq, 1);
---
>     if (isOn and 0 < displayed_screen and displayed_screen < 5 and !refresh_timer) {
> 	refresh_timer += 1;
> 	settimer(func { refresh_display(0); }, freq, 1);
>     }
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to