dnl Process this file with autoconf to create configure.
AC_PREREQ(2.57)
-AC_INIT([altos], 1.8.6.1)
+AC_INIT([altos], 1.8.7)
ANDROID_VERSION=17
AC_CONFIG_SRCDIR([src/kernel/ao.h])
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_MAINTAINER_MODE
-RELEASE_DATE=2018-06-17
+RELEASE_DATE=2018-10-08
AC_SUBST(RELEASE_DATE)
VERSION_DASH=`echo $VERSION | sed 's/\./-/g'`
<?dbhtml filename="altusmetrum-revhistory.html"?>
<revision>
<revnumber>1.8.7</revnumber>
- <date>6 Oct 2018</date>
+ <date>8 Oct 2018</date>
<revremark>
Include TeleMega v3.0 firmware in release. Fix TeleBT v4.0 RF
- calibration to factory value when reflashing.
+ calibration to factory value when reflashing. Fix map images.
+ Fix Mac OS X support.
</revremark>
</revision>
<revision>
<?dbhtml filename="micropeak-revhistory.html"?>
<revision>
<revnumber>1.8.7</revnumber>
- <date>6 October 2018</date>
+ <date>8 October 2018</date>
<revremark>
- Poll for MicroPeak USB while the device dialog is open.
+ Poll for MicroPeak USB while the device dialog is open. Fix Mac OS X support.
</revremark>
</revision>
<revision>
* Include TeleMega v3.0 firmware
- == AltosUI, TeleGPS
+ == AltosUI, TeleGPS, MicroPeak
* Poll for new devices while Device dialog is displayed
* Add documentation about forcing TeleMini RF parameters to
known values.
- == MicroPeak
+ * Create a proxy server for Google Maps to re-enable map
+ images
- * Poll for new devices while Device dialog is displayed
+ * Fix Java version info in all distributed jar files so that
+ applications will run with standard Mac OS X Java.
+
+ * Replace JavaApplicationStub for Mac OS X so that
+ applications will run with Oracle Java.
<email>keithp@keithp.com</email>
</author>
<copyright>
- <year>2015</year>
+ <year>2018</year>
<holder>Bdale Garbee and Keith Packard</holder>
</copyright>
<mediaobject>
</legalnotice>
<revhistory>
<?dbhtml filename="telegps-revhistory.html"?>
+ <revision>
+ <revnumber>1.8.7</revnumber>
+ <date>08 Oct 2018</date>
+ <revremark>
+ Fix TeleBT v4.0 RF calibration to factory value when
+ reflashing. Fix map images. Fix Mac OS X support.
+ </revremark>
+ </revision>
<revision>
<revnumber>1.8.3</revnumber>
<date>11 Dec 2017</date>
public final static int scale = 1;
+ public static int max_zoom = 17;
+
public static double valid_radius = 17000; /* 17km */
public String map_dir = null;
public void usage() {
System.out.printf("usage: altos-mapd [--mapdir <map-directory] [--launch-sites <launch-sites-file>]\n" +
- " [--radius <valid-radius-m> [--port <port>] [--key <key-file>]\n");
+ " [--radius <valid-radius-m> [--port <port>] [--key <key-file>]\n" +
+ " [--max-zoom <max-zoom-level>\n");
System.exit(1);
}
}
public static boolean check_lat_lon(double lat, double lon, int zoom) {
+
+ if (zoom > max_zoom)
+ return false;
+
AltosMapTransform transform = new AltosMapTransform(px_size, px_size, zoom, new AltosLatLon(lat, lon));
AltosLatLon upper_left = transform.screen_lat_lon(new AltosPointInt(0, 0));
} else if (args[i].equals("--key") && i < args.length-1) {
key_file = args[i+1];
skip = 2;
+ } else if (args[i].equals("--max-zoom") && i < args.length-1) {
+ try {
+ max_zoom = AltosParse.parse_int(args[i+1]);
+ } catch (ParseException pe) {
+ usage();
+ }
+ skip = 2;
} else {
usage();
}
MAPKEY=/home/altos-mapd/google-maps-api-key
MAPDIR=/home/altos-mapd/maps
LAUNCHSITES=/var/www/html/launch-sites.txt
+MAXZOOM=17
User=altos-mapd
Restart=always
EnvironmentFile=/etc/default/altos-mapd-default
-ExecStart=/usr/bin/altos-mapd --key $MAPKEY --mapdir $MAPDIR --launch-sites $LAUNCHSITES
+ExecStart=/usr/bin/altos-mapd --key $MAPKEY --mapdir $MAPDIR --launch-sites $LAUNCHSITES --max-zoom $MAXZOOM
[Install]
WantedBy=multi-user.target