Welcome to the CSE260/261 (Computer Science II: Honors) home page for Fall 2016. This page will be the main source of course information throughout the semester.
Please check this page regularly for new messages. The newest messages will always appear first.
The final exam will be held on Wednesday, December 14, 2016, from 5:30PM to 8:00PM in Old Computer Science 2129.
GPSDevice.jar
.
Please update to the current version (415527 bytes), as that is
what will be used for testing.
GPSDevice
lie in the range -270 to 90, as
opposed to 0 to 360 as advertised. I will attempt to build a
new GPSDevice.jar
that fixes this issue.
The code in the current version that computes the heading data
is the following:
GPSDevice.jar
and some
additional data files.
To include the GPSDevice.jar
in your project,
import it into Eclipse but do not unpack it.
Right click on the project and go to the properties page,
then the "Java build path" tab. Under "Libraries" choose
"add internal JAR".
When you create an instance of GPSDevice
, a frame
will pop up with the map specified in the constructor.
The frame provides tools for selecting a route and initiating
"driving". Once you have registered a GPSListener
,
chosen a route and selected "Drive", position updates will be
made to the listener you have registered as the "car" traverses
the selected route. If you stop driving and choose another
route, you can exercise the "off course" feature of your
program.
There is one clarification to the project handout:
the default constructor of GPSDevice
tries to
load a file with path DATA/usb.osm
.
Probably you will want to use the other constructor, which lets
you specify the filename.
There ought to be, but is not, a method for disposing of a
GPSDevice
instance. This means that if you load
a new map, you have to close the frame with the old map
manually.
Also, Rohit (thanks!) sent me this link which has info on the tags used in the OSM database.
I will be using this system to manage assignment handin and distribute grades.