170 likes | 257 Views
COE-485 Senior Design Project. Group#1 Week_8. Content. Map calibration. Mapping between GPS coordinates and map coordinates. Virtual GPS. Serial Interface. Integrating Components. Map Calibration. 2 problem Faced: The right direction of the map.
E N D
COE-485Senior Design Project Group#1 Week_8
Content • Map calibration. • Mapping between GPS coordinates and map coordinates. • Virtual GPS. • Serial Interface. • Integrating Components
Map Calibration • 2 problem Faced: • The right direction of the map. • The longitude and latitude of Dhahran Map. • Solution: • Modify the map (new scanned, North). • Use program to Calibrate the map: • OziExplorer • http://www.oziexplorer.com
From GPS to map • Reach to equation that relates the GPS coordinates and the coordinates on the map. • Mapping depends on Map view and size. • E.g. 5 minutes on real = 200 pixels on interface • Direction of new location. • Plotting the new coordinates.
Virtual GPS • Why do we need to buy GPS units ? • We can use Franson GPSGate for free. • We can use Franson GPSGate Simulator (software) which acts as a virtual GPS. • With some settings it can send GPS messages to a physical port. • These messages can be of any NMEA type ( eg. GGA ). • You can download it from: http://franson.com/gpsgate/
Virtual GPS Choose Simulator to act as a virtual GPS Step1:Settings Choose the Physical Ports if you have
Virtual GPS A : Add the coordinates manually • Step2: B : From advanced We can Choose any NMEA format as shown next slide
Virtual GPS B: Choosing NMEA format.
Virtual GPS To start the simulator click Start. NMEA data will now be sent out the virtual serial ports you defined under Finally
Example This is the execution of our code that reads from the serial physical port after virtual GPS sent the messages to it.
Serial Interface • Using the package javax.comm • The Package help to enumerate all the ports available in the PC. • Contains all classes needed to send and receive data from serial ports. • Available at the sun website. • java.sun.com/products/javacomm/index.jsp
Integrating Components • Putting things together. • User Interface + calibrated map + NMEA parser + Serial Interface + virtual GPS. Interface Calibrated Map Intermediate class Storage NMEA parser Virtual GPS Serial Interface HW
Coming next • Progress report. • Phase 2 planning. • Have fun in Midterm break.