Monday, May 24, 2010

Can u provide me with a c code for logic given below.......?

$GPRMC,040302.663,A,3939.7,N,10506.6,W,0...

















$GPRMC,





040302.663, //time (current IST=Time+5.30)


A, //Validate (OK)


3939.7675,N, //Latitude ddmm.mmmm


10506.64565,W, //Longitude dddmm.mmmm


0.27,


358.86,


200804, //Date


,*1A














/**********Latitude Calculation**************/





ddmm.mmmm = 3939.7675





dd=39


mm.mmmm= 39.7675





minutes= mm.mmmm/60 =0.66279





decimal format = dd + minutes


= 39.66279








/************longitude calculation***********/





dddmm.mmmm= 10506.6456





ddd= 105





mm.mmmm= 06.64565





minutes= mm.mmmm/60 = 0.11076





decimal format = dd + minutes


= 105.11076





/*******Coordiantes to enter in Google Earth************/





Latitude, longitude





39.66279,105.11076


39.66279N,105.11076E


+39.66279,+105.11076

Can u provide me with a c code for logic given below.......?
try c compiler ,or just printf them all
Reply:I can surely but not getting what have you writte mail me regarding this if you want the source code and your question.


No comments:

Post a Comment