Update of /cvsroot/rcpilot/src/rcpilot/rcgs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9084/rcpilot/rcgs
Modified Files:
RcgsMap.java
Log Message:
minor bug in plane trail code fixed
Index: RcgsMap.java
===================================================================
RCS file: /cvsroot/rcpilot/src/rcpilot/rcgs/RcgsMap.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** RcgsMap.java 28 Jun 2004 10:33:45 -0000 1.12
--- RcgsMap.java 28 Jun 2004 10:36:58 -0000 1.13
***************
*** 387,395 ****
int planeLonSecs = Rcgs.tdata.getGPSLongitude();
- if(gpsHistoryLat.size()==GPS_HISTORY_LENGTH) {
- gpsHistoryLat.poll(); // remove head of queue
- gpsHistoryLon.poll(); // remove head of queue
- }
-
// calculate plane position on current display
--- 387,390 ----
***************
*** 738,741 ****
--- 733,741 ----
int planeLonSecs = Rcgs.tdata.getGPSLongitude();
+ if(gpsHistoryLat.size()==GPS_HISTORY_LENGTH) {
+ gpsHistoryLat.poll(); // remove head of queue
+ gpsHistoryLon.poll(); // remove head of queue
+ }
+
gpsHistoryLat.offer(new Integer(planeLatSecs));
gpsHistoryLon.offer(new Integer(planeLonSecs));
|