mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Fixed issue with comma parsing (space after comma was causing routine to misread data)
Added init functions (PMTK) git-svn-id: https://arducopter.googlecode.com/svn/trunk@663 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
778c68d5ef
commit
d7e71b602c
@ -2,6 +2,7 @@
|
||||
/*
|
||||
GPS_NMEA.cpp - Generic NMEA GPS library for Arduino
|
||||
Code by Jordi Muñoz and Jose Julio. DIYDrones.com
|
||||
Edits by HappyKillmore
|
||||
This code works with boards based on ATMega168 / 328 and ATMega1280 (Serial port 1)
|
||||
|
||||
This library is free software; you can redistribute it and / or
|
||||
@ -50,6 +51,12 @@ void
|
||||
AP_GPS_NMEA::init(void)
|
||||
{
|
||||
//Type = 2;
|
||||
// initialize serial port for binary protocol use
|
||||
_port->print(NMEA_OUTPUT_SENTENCES);
|
||||
_port->print(NMEA_OUTPUT_4HZ);
|
||||
_port->print(SBAS_ON);
|
||||
_port->print(DGPS_SBAS);
|
||||
_port->print(DATUM_GOOGLE);
|
||||
}
|
||||
|
||||
// This code don´t wait for data, only proccess the data available on serial port
|
||||
|
Loading…
Reference in New Issue
Block a user