adding 5hrs 30 sec to the time which i get in $gprmc string( nmea data) in pic 24fmi

Status
Not open for further replies.

dews

Newbie level 2
Joined
Feb 27, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
bangalore
Activity points
1,291
adding 5hrs 30 sec to the time which i get in $gprmc string( nmea data) in pic 24f

$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A

i am receiving this data into a buffer.
now i need to add 5 hrs 30 min to the time which according to this string is 12hrs 35min 19sec
in my buffer
txbuff[8]+=5;

it shows 17hrs
but when the time is for ex:08hrs 30 min 35 sec
txbuff[8]+=5;

gives me 0=hrs because it displays ascii .
even if i subtract 0x30 im not able to get proper data.
please give me some idea .
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…