Changeset - 2b32812e1737
[Not reviewed]
default
0 1 0
ethanzonca@CL-ENS241-08.cedarville.edu - 12 years ago 2013-04-18 21:31:01
ethanzonca@CL-ENS241-08.cedarville.edu
Fixed issue where GPS altitude included "M" after number
1 file changed with 9 insertions and 1 deletions:
0 comments (0 inline, 0 general)
master/master/lib/gps.c
Show inline comments
 
@@ -454,7 +454,15 @@ void parse_gps_transmission(void){
 
			}
 
			else if(byte == ',') //end of this data type
 
			{
 
				altitude[numBytes] = 0x00;
 
				// If we actually have an altitude
 
				if(numBytes>0) 
 
				{
 
					altitude[numBytes-1] = 0x00; // Cut off the "M" from the end of the altitude
 
				}
 
				else 
 
				{
 
					altitude[numBytes] = 0x00;
 
				}					
 
				setParserState(GGA_WGS84);
 
				numBytes = 0; //prep for next phase of parse
 
			}
0 comments (0 inline, 0 general)