COE-485 Senior Design Project Group#1Week_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 right direction of the map. The longitude and latitude of Dhahran Map. The longitude and latitude of Dhahran Map.Solution: Modify the map (new scanned, North). Modify the map (new scanned, North). Use program to Calibrate the map: Use program to Calibrate the map:OziExplorer
Calibration(2)
Calibration(2)
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:
Virtual GPS Step1:Settings Choose Simulator to act as a virtual GPS Choose the Physical Ports if you have
Virtual GPS Step2: B : From advanced We can Choose any NMEA format as shown next slide A : Add the coordinates manually
Virtual GPS B: Choosing NMEA format.
Virtual GPS Finally To start the simulator click Start. NMEA data will now be sent out the virtual serial ports you defined under
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 java.sun.com/products/javacomm/index.jsp
Integrating Components Putting things together. User Interface + calibrated map + NMEA parser + Serial Interface + virtual GPS. InterfaceCalibrated Map Serial Interface NMEA parser Virtual GPS Intermediate class Storage HW
Coming next Progress report. Phase 2 planning. Have fun in Midterm break.