mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 07:38:28 -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
|
GPS_NMEA.cpp - Generic NMEA GPS library for Arduino
|
||||||
Code by Jordi Muñoz and Jose Julio. DIYDrones.com
|
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 code works with boards based on ATMega168 / 328 and ATMega1280 (Serial port 1)
|
||||||
|
|
||||||
This library is free software; you can redistribute it and / or
|
This library is free software; you can redistribute it and / or
|
||||||
@ -50,6 +51,12 @@ void
|
|||||||
AP_GPS_NMEA::init(void)
|
AP_GPS_NMEA::init(void)
|
||||||
{
|
{
|
||||||
//Type = 2;
|
//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
|
// This code don´t wait for data, only proccess the data available on serial port
|
||||||
|
Loading…
Reference in New Issue
Block a user