coe-485 senior design project group#1week_8. content map calibration. mapping between gps...
Post on 19-Dec-2015
218 views
TRANSCRIPT
ContentContent
Map calibration.Map calibration.
Mapping between GPS coordinates and map Mapping between GPS coordinates and map coordinates.coordinates.
Virtual GPS.Virtual GPS.
Serial Interface.Serial Interface.
Integrating ComponentsIntegrating Components
Map Calibration Map Calibration
2 problem Faced: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: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 OziExplorer
http://www.oziexplorer.comhttp://www.oziexplorer.com
From GPS to mapFrom GPS to map
Reach to equation that relates the GPS coordinates and Reach to equation that relates the GPS coordinates and the coordinates on the map.the coordinates on the map.
Mapping depends on Map view and size.Mapping depends on Map view and size.
E.g. 5 minutes on real = 200 pixels on interfaceE.g. 5 minutes on real = 200 pixels on interface
Direction of new locationDirection of new location..
Plotting the new coordinates.Plotting the new coordinates.
Virtual GPSVirtual GPS
Why do we need to buy GPS units ?Why do we need to buy GPS units ?We can use Franson GPSGate for free.We can use Franson GPSGate for free.We can use Franson GPSGate Simulator We can use Franson GPSGate Simulator (software) which acts as a virtual GPS.(software) which acts as a virtual GPS.With some settings it can send GPS messages With some settings it can send GPS messages to a physical port.to a physical port.These messages can be of any NMEA type ( eg. These messages can be of any NMEA type ( eg. GGA ). GGA ). You can download it from: You can download it from: http://http://franson.com/gpsgatefranson.com/gpsgate/ /
Virtual GPSVirtual GPS
Step1:SettingsStep1:SettingsChoose Simulator to act as a virtual GPS
Choose the Physical
Ports if you have
Virtual GPSVirtual GPS
Step2: Step2:
B : From advanced We can Choose
any NMEA format as shown next
slide
A : Add the coordinates manually
Virtual GPSVirtual GPS
Finally Finally To start the simulator click
Start. NMEA data will now be sent out
the virtual serial ports you defined
under
Example Example
This is the execution of our code that reads from the serial physical This is the execution of our code that reads from the serial physical port after virtual GPS sent the messages to it. port after virtual GPS sent the messages to it.
Serial InterfaceSerial Interface
Using the package javax.commUsing the package javax.comm
The Package help to enumerate all the ports The Package help to enumerate all the ports available in the PC.available in the PC.
Contains all classes needed to send and receive Contains all classes needed to send and receive data from serial ports.data from serial ports.
Available at the sun website.Available at the sun website. javajava.sun.com/products/.sun.com/products/javajavacomm/index.jsp comm/index.jsp
Integrating ComponentsIntegrating Components
Putting things together.Putting things together.User Interface + calibrated map + NMEA parser + Serial User Interface + calibrated map + NMEA parser + Serial Interface + virtual GPS.Interface + virtual GPS.
Interface Calibrated Map
Serial Interface NMEA parserVirtual GPS
Intermediate class
Storage
HW